summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2019-02-11 11:06:21 +0100
committerChris Lamb <lamby@debian.org>2019-02-11 14:07:30 +0100
commit90a4b861cd6452634186656fa5b8385fe890518d (patch)
tree192101ed017a076bfdc1d7c913f6852ac41c09c6 /lib
parent2b994c416d9418d2fd0301f45c4b03e6b8d23a59 (diff)
lib/python/bugs.py: Use explicit list comprehension; the "lambda (x,)" syntax is not actually valid in Python 3.
Diffstat (limited to 'lib')
-rw-r--r--lib/python/bugs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 570a5f859c..4698258601 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -370,11 +370,11 @@ class BugFromDB(Bug):
def getDebianBugs(self, cursor):
"""Returns a list of Debian bugs to which the bug report refers."""
- return map(lambda (x,): x, cursor.execute(
+ return [x[0] for x in cursor.execute(
"""SELECT DISTINCT bug FROM package_notes, debian_bugs
WHERE package_notes.bug_name = ?
AND debian_bugs.note = package_notes.id
- ORDER BY bug""", (self.name,)))
+ ORDER BY bug""", (self.name,))]
def getStatus(self, cursor):
"""Calculate bug status.

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