Port update-maintainer to Python 3

This commit is contained in:
Stefano Rivera 2019-09-04 17:26:53 -03:00
parent 96896fd2c8
commit 5f3247cfc0
2 changed files with 4 additions and 4 deletions

View File

@ -45,6 +45,7 @@ if sys.version_info[0] >= 3:
'ubuntu-build',
'ubuntu-iso',
'ubuntu-upload-permission',
'update-maintainer',
]
data_files = [
('share/bash-completion/completions', glob.glob("bash_completion/*")),
@ -56,7 +57,6 @@ else:
scripts = [
'import-bug-from-debian',
'merge-changelog',
'update-maintainer',
]
data_files = []

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#
# Copyright (C) 2010, Benjamin Drung <bdrung@ubuntu.com>
#
@ -39,8 +39,8 @@ def main():
(options, args) = parser.parse_args()
if len(args) != 0:
print >> sys.stderr, ("%s: Error: Unsupported additional parameters "
"specified: %s") % (script_name, ", ".join(args))
print("%s: Error: Unsupported additional parameters specified: %s"
% (script_name, ", ".join(args)), file=sys.stderr)
sys.exit(1)
if not options.restore: