aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/list.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/command/list.py b/libbe/command/list.py
index f348d5c..2611692 100644
--- a/libbe/command/list.py
+++ b/libbe/command/list.py
@@ -179,7 +179,9 @@ class List (libbe.command.Command):
for x in params['extra-strings'].split(',')]
return (cmp_list, status, severity, assigned, extra_strings_regexps)
- def _sort_bugs(self, bugs, cmp_list=[]):
+ def _sort_bugs(self, bugs, cmp_list=None):
+ if cmp_list is None:
+ cmp_list = []
cmp_list.extend(libbe.bug.DEFAULT_CMP_FULL_CMP_LIST)
cmp_fn = libbe.bug.BugCompoundComparator(cmp_list=cmp_list)
bugs.sort(cmp_fn)