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

« back to all changes in this revision

Viewing changes to publish-patches.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 print_function
 
21
 
20
22
import os
21
23
import logging
22
24
 
78
80
    os.link(filename, publish_filename)
79
81
 
80
82
    logging.info("Published %s", tree.subdir(ROOT, publish_filename))
81
 
    print >>list_file, "%s %s" % (source["Package"],
82
 
                                  tree.subdir("%s/published" % ROOT,
83
 
                                              publish_filename))
 
83
    print("%s %s" % (source["Package"],
 
84
                     tree.subdir("%s/published" % ROOT, publish_filename)),
 
85
          file=list_file)
84
86
 
85
87
    # Remove older patches
86
88
    for junk in os.listdir(os.path.dirname(publish_filename)):