~brian-murray/merge-o-matic/linkify-uploader

« back to all changes in this revision

Viewing changes to syndicate.py

  • Committer: Colin Watson
  • Date: 2012-05-22 14:32:34 UTC
  • Revision ID: cjwatson@canonical.com-20120522143234-u20m4o4717lp4h3x
Use Python 3-compatible print functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# You should have received a copy of the GNU General Public License
18
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
 
from __future__ import with_statement
 
20
from __future__ import print_function, with_statement
21
21
 
22
22
import os
23
23
import bz2
406
406
    mark_file = "%s/%s/watermark" \
407
407
                % (ROOT, pool_directory(distro, source["Package"]))
408
408
    with open(mark_file, "w") as mark:
409
 
        print >>mark, "%s" % version
 
409
        print("%s" % version, file=mark)
410
410
 
411
411
 
412
412
if __name__ == "__main__":