diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 09:47:46 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 09:47:46 +0100 |
commit | 5d8e5bf31fa4035d8c45300244432de7d772832e (patch) | |
tree | ad18e56b21d07cc3a5043314ee78a4c774792468 /libbe/command/list.py | |
parent | 3803b501a79071187324d75efdf1ea9e3437347f (diff) | |
download | bugseverywhere-5d8e5bf31fa4035d8c45300244432de7d772832e.tar.gz |
Safeguard List._sort_bugs from accumulating values in its default parameters.
Diffstat (limited to 'libbe/command/list.py')
-rw-r--r-- | libbe/command/list.py | 4 |
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) |