summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2019-03-06 17:16:18 +1100
committerBrian May <brian@linuxpenguins.xyz>2019-06-17 17:36:20 +1000
commit009a8a5fb4662d2b05472378aa7d383cbba981cc (patch)
tree2c1971c72a83d73b0a7974700cd204da5eb37904 /lib
parent71f4842225268d7568ddaa69bd9cb74b0e2c9894 (diff)
Fix list sort
Diffstat (limited to 'lib')
-rw-r--r--lib/python/bugs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 4698258601..0ef8266e42 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import debian_support
+import functools
import os
import re
import types
@@ -297,7 +298,7 @@ class Bug(BugBase):
ar = str(a[1] or '')
br = str(b[1] or '')
return cmp(ar, br)
- l.sort(compare)
+ l.sort(key=functools.cmp_to_key(compare))
nts = []
for key in l:

© 2014-2024 Faster IT GmbH | imprint | privacy policy