From 90a4b861cd6452634186656fa5b8385fe890518d Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 11 Feb 2019 11:06:21 +0100 Subject: lib/python/bugs.py: Use explicit list comprehension; the "lambda (x,)" syntax is not actually valid in Python 3. --- lib/python/bugs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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. -- cgit v1.2.3