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

Proposed by Colin Watson on 2020-05-29
Status: Merged
Approved by: Colin Watson on 2020-05-29
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/ (+4/-2)
Reviewer Review Type Date Requested Status
Colin Watson Approve on 2020-05-29
Review via email:

Commit message

Port lp.bugs.scripts.debbugs to print_function

To post a comment you must log in.
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
1diff --git a/lib/lp/bugs/scripts/ b/lib/lp/bugs/scripts/
2index 90de42f..dce8927 100644
3--- a/lib/lp/bugs/scripts/
4+++ b/lib/lp/bugs/scripts/
5@@ -1,6 +1,8 @@
6 # Copyright 2009 Canonical Ltd. This software is licensed under the
7 # GNU Affero General Public License version 3 (see the file LICENSE).
9+from __future__ import absolute_import, print_function
11 import cStringIO
12 from datetime import datetime
13 import email
14@@ -271,6 +273,6 @@ if __name__ == '__main__':
16 for bug in Database('/srv/'):
17 try:
18- print bug, bug.subject
19+ print(bug, bug.subject)
20 except Exception as e:
21- print >>sys.stderr, '%s: %s' % (e.__class__.__name__, str(e))
22+ print('%s: %s' % (e.__class__.__name__, str(e)), file=sys.stderr)


People subscribed via source and target branches