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

« back to all changes in this revision

Viewing changes to update-sources.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 sys
21
23
import os
22
24
 
34
36
        try:
35
37
            hparts = os.listdir("%s/pool/%s" % (ROOT, distro))
36
38
        except OSError, e:
37
 
            print >>sys.stderr, e, "(continuing)"
 
39
            print(e, "(continuing)", file=sys.stderr)
38
40
            continue
39
41
        for hpart in hparts:
40
42
            for package in os.listdir("%s/pool/%s/%s" % (ROOT, distro, hpart)):