mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-31 08:34:03 +00:00
Port update-maintainer to Python 3
This commit is contained in:
parent
96896fd2c8
commit
5f3247cfc0
2
setup.py
2
setup.py
@ -45,6 +45,7 @@ if sys.version_info[0] >= 3:
|
|||||||
'ubuntu-build',
|
'ubuntu-build',
|
||||||
'ubuntu-iso',
|
'ubuntu-iso',
|
||||||
'ubuntu-upload-permission',
|
'ubuntu-upload-permission',
|
||||||
|
'update-maintainer',
|
||||||
]
|
]
|
||||||
data_files = [
|
data_files = [
|
||||||
('share/bash-completion/completions', glob.glob("bash_completion/*")),
|
('share/bash-completion/completions', glob.glob("bash_completion/*")),
|
||||||
@ -56,7 +57,6 @@ else:
|
|||||||
scripts = [
|
scripts = [
|
||||||
'import-bug-from-debian',
|
'import-bug-from-debian',
|
||||||
'merge-changelog',
|
'merge-changelog',
|
||||||
'update-maintainer',
|
|
||||||
]
|
]
|
||||||
data_files = []
|
data_files = []
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010, Benjamin Drung <bdrung@ubuntu.com>
|
# Copyright (C) 2010, Benjamin Drung <bdrung@ubuntu.com>
|
||||||
#
|
#
|
||||||
@ -39,8 +39,8 @@ def main():
|
|||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
if len(args) != 0:
|
if len(args) != 0:
|
||||||
print >> sys.stderr, ("%s: Error: Unsupported additional parameters "
|
print("%s: Error: Unsupported additional parameters specified: %s"
|
||||||
"specified: %s") % (script_name, ", ".join(args))
|
% (script_name, ", ".join(args)), file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not options.restore:
|
if not options.restore:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user