summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-07-16 16:05:34 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-07-29 10:20:41 +0200
commitaa796e9587032917d46e08b8f3706d640c417d64 (patch)
tree73f815aea95a89f33d7a4d3cf381cfef22b8c2bf /bin
parent39b0f8367c2b1d530d46284d5c088c4914431a56 (diff)
tracker_service.py: use a lambda function to sort
As cmp is gone in py3. Also don't pass it as a positional argument.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tracker_service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tracker_service.py b/bin/tracker_service.py
index 074669bade..26c479fff4 100755
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -486,7 +486,7 @@ data source.""")],
def gen_data():
notes_sorted = bug.notes[:]
- notes_sorted.sort(lambda a, b: cmp(a.package, b.package))
+ notes_sorted.sort(key=lambda n: n.package)
for n in notes_sorted:
if n.release:
rel = str(n.release)

© 2014-2024 Faster IT GmbH | imprint | privacy policy