]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_accepted.py
Replace map() calls with list comprehension instead.
[dak.git] / dak / process_accepted.py
index 849cdfe91c88d56a0f773c77035d6361d2d365a8..e791b43d46a344d402f42fffa022c9e53ad26f7a 100755 (executable)
@@ -488,7 +488,7 @@ def stable_install (summary, short_summary):
                q = projectB.query(que)
 
                # Reduce the query results to a list of version numbers
-               ql = map(lambda x: x[0], q.getresult())
+               ql = [ i[0] for i in q.getresult() ]
                if not ql:
                    daklib.utils.fubar("[INTERNAL ERROR] couldn't find '%s' (%s for %s architecture) in binaries table." % (package, version, architecture))
                else: