[Git][security-tracker-team/security-tracker][master] 2 commits: Fix list sort
Salvatore Bonaccorso
carnil at debian.org
Thu Jan 2 13:24:31 GMT 2020
Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker
Commits:
280c5362 by Brian May at 2019-06-17T17:36:20+10:00
Fix list sort
- - - - -
444be9c6 by Salvatore Bonaccorso at 2020-01-02T14:22:35+01:00
Merge branch 'bam/security-tracker-fix_cmp'
See merge request security-tracker-team/security-tracker!40
- - - - -
1 changed file:
- lib/python/bugs.py
Changes:
=====================================
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:
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/c5b9a26150e26e3bd64248e215d82f728e8a8135...444be9c684bfdd22a5b0d8cf3679071873c2929d
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/c5b9a26150e26e3bd64248e215d82f728e8a8135...444be9c684bfdd22a5b0d8cf3679071873c2929d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20200102/ea74d8b7/attachment.html>
More information about the debian-security-tracker-commits
mailing list