From: Arun Babu Neelicattu <abn(a)redhat.com>
- sorted() no longer accepts cmp argument
- default sorting works for python-bugzilla use case
---
bugzilla/base.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bugzilla/base.py b/bugzilla/base.py
index 9740d3c..1756908 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -444,8 +444,7 @@ class BugzillaBase(object):
section = ""
# Substring match - prefer the longest match found
log.debug("Searching for config section matching %s", self.url)
- for s in sorted(c.sections(),
- lambda a, b: cmp(len(a), len(b)) or cmp(a, b)):
+ for s in sorted(c.sections()):
if s in self.url:
log.debug("Found matching section: %s", s)
section = s
--
1.8.3.1