mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +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."""
|
"""Add 'bitesize' tag to bugs and add a comment."""
|
||||||
|
|
||||||
# Copyright (c) 2011 Canonical Ltd.
|
# Copyright (c) 2011 Canonical Ltd.
|
||||||
@ -39,7 +39,7 @@ def error_out(msg):
|
|||||||
def save_entry(entry):
|
def save_entry(entry):
|
||||||
try:
|
try:
|
||||||
entry.lp_save()
|
entry.lp_save()
|
||||||
except HTTPError, error:
|
except HTTPError as error:
|
||||||
error_out(error.content)
|
error_out(error.content)
|
||||||
|
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ def main():
|
|||||||
# check that the new main bug isn't a duplicate
|
# check that the new main bug isn't a duplicate
|
||||||
try:
|
try:
|
||||||
bug = launchpad.bugs[args[0]]
|
bug = launchpad.bugs[args[0]]
|
||||||
except HTTPError, error:
|
except HTTPError as error:
|
||||||
if error.response.status == 401:
|
if error.response.status == 401:
|
||||||
error_out("Don't have enough permissions to access bug %s. %s" %
|
error_out("Don't have enough permissions to access bug %s. %s" %
|
||||||
(args[0], error.content))
|
(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:
|
if sys.version_info[0] >= 3:
|
||||||
scripts = [
|
scripts = [
|
||||||
'backportpackage',
|
'backportpackage',
|
||||||
|
'bitesize',
|
||||||
'check-symbols',
|
'check-symbols',
|
||||||
'dch-repeat',
|
'dch-repeat',
|
||||||
'grab-merge',
|
'grab-merge',
|
||||||
@ -35,7 +36,6 @@ if sys.version_info[0] >= 3:
|
|||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
scripts = [
|
scripts = [
|
||||||
'bitesize',
|
|
||||||
'check-mir',
|
'check-mir',
|
||||||
'grep-merges',
|
'grep-merges',
|
||||||
'hugdaylist',
|
'hugdaylist',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user