Merge lp:~mitchburton/python-oops-datedir-repo/python-oops-datedir-repo into lp:python-oops-datedir-repo

Proposed by Mitch Burton
Status: Merged
Merged at revision: 61
Proposed branch: lp:~mitchburton/python-oops-datedir-repo/python-oops-datedir-repo
Merge into: lp:python-oops-datedir-repo
Diff against target: 12 lines (+1/-1)
1 file modified
oops_datedir_repo/bsondump.py (+1/-1)
To merge this branch: bzr merge lp:~mitchburton/python-oops-datedir-repo/python-oops-datedir-repo
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+427861@code.launchpad.net

Commit message

Use python3-style print in bsondump.py

Description of the change

Minor fix prompted by issue during `dpkg --configure` of python3-oops-datedir-repo package:

Setting up python3-oops-datedir-repo (0.0.24-0ubuntu2) ...
  File "/usr/lib/python3/dist-packages/oops_datedir_repo/bsondump.py", line 37
    print __doc__
    ^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
dpkg: error processing package python3-oops-datedir-repo (--configure):
 installed python3-oops-datedir-repo package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 python3-oops-datedir-repo

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

Oops. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'oops_datedir_repo/bsondump.py'
2--- oops_datedir_repo/bsondump.py 2018-03-12 12:06:11 +0000
3+++ oops_datedir_repo/bsondump.py 2022-08-04 23:13:02 +0000
4@@ -34,7 +34,7 @@
5 if argv is None:
6 argv = sys.argv
7 if len(argv) != 2:
8- print __doc__
9+ print(__doc__)
10 sys.exit(1)
11 # I'd like to use json here, but not everything serializable in bson is
12 # easily representable in json - even before getting in to the weird parts,

Subscribers

People subscribed via source and target branches

to all changes: