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/debbugs.py (+4/-2)
Reviewer Review Type Date Requested Status
Colin Watson Approve on 2020-05-29
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.
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/debbugs.py b/lib/lp/bugs/scripts/debbugs.py
2index 90de42f..dce8927 100644
3--- a/lib/lp/bugs/scripts/debbugs.py
4+++ b/lib/lp/bugs/scripts/debbugs.py
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).
8
9+from __future__ import absolute_import, print_function
10+
11 import cStringIO
12 from datetime import datetime
13 import email
14@@ -271,6 +273,6 @@ if __name__ == '__main__':
15
16 for bug in Database('/srv/debzilla.no-name-yet.com/debbugs'):
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)

Subscribers

People subscribed via source and target branches