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
commit271295dd74f70d3527b7e3e70c58aaedf1e7af41 (patch)
tree35499f052efa571b6ec154e14925c54402f9fcc8 /bin
parentc7cd4e77570aae047f2f6df201f8bb35659ecbf8 (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