summaryrefslogtreecommitdiffstats
path: root/bin/tracker_service.py
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
commit52f6a35f5293963c4496a4578c2da6cb8d37cb3b (patch)
tree47a257dfd8591fbfa19f73720e5d81ccdb381c83 /bin/tracker_service.py
parent9ea98eb6bccdfdeb03c80bd1683590d6d7251990 (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/tracker_service.py')
-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