From 280c5362e31a5817e3e6995f9410353ba9bb2b42 Mon Sep 17 00:00:00 2001 From: Brian May Date: Wed, 6 Mar 2019 17:16:18 +1100 Subject: Fix list sort --- lib/python/bugs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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: -- cgit v1.2.3