diff options
author | Brian May <brian@linuxpenguins.xyz> | 2019-03-06 17:16:18 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-06-17 17:36:20 +1000 |
commit | 98032f87a6e92beab9b9da3bb123b080478e1d70 (patch) | |
tree | 54939d5841d5facc8e8a7579c05ed586dd73bc3f /lib | |
parent | 24b4da84d9ddd3c5b4e661e9211d97769251873a (diff) |
Fix list sort
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/bugs.py | 3 |
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: |