mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Port bitesize to python3
This commit is contained in:
parent
a41af75643
commit
2a0bffc2a0
6
bitesize
6
bitesize
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
"""Add 'bitesize' tag to bugs and add a comment."""
|
||||
|
||||
# Copyright (c) 2011 Canonical Ltd.
|
||||
@ -39,7 +39,7 @@ def error_out(msg):
|
||||
def save_entry(entry):
|
||||
try:
|
||||
entry.lp_save()
|
||||
except HTTPError, error:
|
||||
except HTTPError as error:
|
||||
error_out(error.content)
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ def main():
|
||||
# check that the new main bug isn't a duplicate
|
||||
try:
|
||||
bug = launchpad.bugs[args[0]]
|
||||
except HTTPError, error:
|
||||
except HTTPError as error:
|
||||
if error.response.status == 401:
|
||||
error_out("Don't have enough permissions to access bug %s. %s" %
|
||||
(args[0], error.content))
|
||||
|
2
setup.py
2
setup.py
@ -18,6 +18,7 @@ if os.path.exists(changelog):
|
||||
if sys.version_info[0] >= 3:
|
||||
scripts = [
|
||||
'backportpackage',
|
||||
'bitesize',
|
||||
'check-symbols',
|
||||
'dch-repeat',
|
||||
'grab-merge',
|
||||
@ -35,7 +36,6 @@ if sys.version_info[0] >= 3:
|
||||
]
|
||||
else:
|
||||
scripts = [
|
||||
'bitesize',
|
||||
'check-mir',
|
||||
'grep-merges',
|
||||
'hugdaylist',
|
||||
|
Loading…
x
Reference in New Issue
Block a user