aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/util.py')
-rw-r--r--libbe/command/util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbe/command/util.py b/libbe/command/util.py
index 9f76ad8..49f3490 100644
--- a/libbe/command/util.py
+++ b/libbe/command/util.py
@@ -61,7 +61,7 @@ def complete_severity(command, argument, fragment=None):
def assignees(bugdirs):
ret = set()
- for bugdir in bugdirs.values():
+ for bugdir in list(bugdirs.values()):
bugdir.load_all_bugs()
ret.update(set([bug.assigned for bug in bugdir
if bug.assigned != None]))
@@ -77,7 +77,7 @@ def complete_extra_strings(command, argument, fragment=None):
def complete_bugdir_id(command, argument, fragment=None):
bugdirs = command._get_bugdirs()
- return bugdirs.keys()
+ return list(bugdirs.keys())
def complete_bug_id(command, argument, fragment=None):
return complete_bug_comment_id(command, argument, fragment,
@@ -96,11 +96,11 @@ def complete_bug_comment_id(command, argument, fragment=None,
root,residual = (fragment, None)
if not root.endswith('/'):
root += '/'
- except libbe.util.id.InvalidIDStructure, e:
+ except libbe.util.id.InvalidIDStructure as e:
return []
except libbe.util.id.NoIDMatches:
return []
- except libbe.util.id.MultipleIDMatches, e:
+ except libbe.util.id.MultipleIDMatches as e:
if e.common == None:
# choose among bugdirs
return e.matches
@@ -226,7 +226,7 @@ def bugdir_bug_comment_from_user_id(bugdirs, id):
def bug_from_uuid(bugdirs, uuid):
error = None
- for bugdir in bugdirs.values():
+ for bugdir in list(bugdirs.values()):
try:
bug = bugdir.bug_from_uuid(uuid)
except libbe.bugdir.NoBugMatches as e: