mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-10 07:21:30 +00:00
Port sponsor-patch to Python 3
This commit is contained in:
parent
673234e449
commit
76609fde49
2
setup.py
2
setup.py
@ -39,6 +39,7 @@ if sys.version_info[0] >= 3:
|
|||||||
'reverse-depends',
|
'reverse-depends',
|
||||||
'seeded-in-ubuntu',
|
'seeded-in-ubuntu',
|
||||||
'setup-packaging-environment',
|
'setup-packaging-environment',
|
||||||
|
'sponsor-patch',
|
||||||
]
|
]
|
||||||
data_files = [
|
data_files = [
|
||||||
('share/bash-completion/completions', glob.glob("bash_completion/*")),
|
('share/bash-completion/completions', glob.glob("bash_completion/*")),
|
||||||
@ -50,7 +51,6 @@ else:
|
|||||||
scripts = [
|
scripts = [
|
||||||
'import-bug-from-debian',
|
'import-bug-from-debian',
|
||||||
'merge-changelog',
|
'merge-changelog',
|
||||||
'sponsor-patch',
|
|
||||||
'submittodebian',
|
'submittodebian',
|
||||||
'syncpackage',
|
'syncpackage',
|
||||||
'ubuntu-build',
|
'ubuntu-build',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010-2011, Benjamin Drung <bdrung@ubuntu.com>
|
# Copyright (C) 2010-2011, Benjamin Drung <bdrung@ubuntu.com>
|
||||||
#
|
#
|
||||||
@ -123,7 +123,7 @@ def main():
|
|||||||
options.keyid, options.lpinstance, options.update,
|
options.keyid, options.lpinstance, options.update,
|
||||||
options.upload, workdir)
|
options.upload, workdir)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print "\nUser abort."
|
print("\nUser abort.")
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
finally:
|
finally:
|
||||||
if options.workdir is None:
|
if options.workdir is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user