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
commit280c5362e31a5817e3e6995f9410353ba9bb2b42 (patch)
treef9a701de901d537c42fce416385a918e82f94e22 /lib
parent804ec21d82673326bbb33b3b9cb2a05392e59535 (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