Merge ~cjwatson/launchpad:py3-debbugs-print into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: d85e268d3a8a30c0041128aa5881619ed0410d3a
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:py3-debbugs-print
Merge into: launchpad:master
Diff against target: 22 lines (+4/-2)
1 file modified
lib/lp/bugs/scripts/debbugs.py (+4/-2)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+384867@code.launchpad.net

Commit message

Port lp.bugs.scripts.debbugs to print_function

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Self-approving as trivial.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
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 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import absolute_import, print_function
5
4import cStringIO6import cStringIO
5from datetime import datetime7from datetime import datetime
6import email8import email
@@ -271,6 +273,6 @@ if __name__ == '__main__':
271273
272 for bug in Database('/srv/debzilla.no-name-yet.com/debbugs'):274 for bug in Database('/srv/debzilla.no-name-yet.com/debbugs'):
273 try:275 try:
274 print bug, bug.subject276 print(bug, bug.subject)
275 except Exception as e:277 except Exception as e:
276 print >>sys.stderr, '%s: %s' % (e.__class__.__name__, str(e))278 print('%s: %s' % (e.__class__.__name__, str(e)), file=sys.stderr)

Subscribers

People subscribed via source and target branches

to status/vote changes: