launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #24802
[Merge] ~cjwatson/launchpad:py3-debbugs-print into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3-debbugs-print into launchpad:master.
Commit message:
Port lp.bugs.scripts.debbugs to print_function
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/384867
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-debbugs-print into launchpad:master.
diff --git a/lib/lp/bugs/scripts/debbugs.py b/lib/lp/bugs/scripts/debbugs.py
index 90de42f..dce8927 100644
--- a/lib/lp/bugs/scripts/debbugs.py
+++ b/lib/lp/bugs/scripts/debbugs.py
@@ -1,6 +1,8 @@
# Copyright 2009 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
+from __future__ import absolute_import, print_function
+
import cStringIO
from datetime import datetime
import email
@@ -271,6 +273,6 @@ if __name__ == '__main__':
for bug in Database('/srv/debzilla.no-name-yet.com/debbugs'):
try:
- print bug, bug.subject
+ print(bug, bug.subject)
except Exception as e:
- print >>sys.stderr, '%s: %s' % (e.__class__.__name__, str(e))
+ print('%s: %s' % (e.__class__.__name__, str(e)), file=sys.stderr)