diff roundup/backends/indexer_rdbms.py @ 4357:13b3155869e0

Beginnings of a big code cleanup / modernisation to make 2to3 happy
author Richard Jones <richard@users.sourceforge.net>
date Mon, 22 Feb 2010 05:26:57 +0000
parents 86e8b2a615fa
children 6e3e4f24c753
line wrap: on
line diff
--- a/roundup/backends/indexer_rdbms.py	Fri Feb 19 05:09:38 2010 +0000
+++ b/roundup/backends/indexer_rdbms.py	Mon Feb 22 05:26:57 2010 +0000
@@ -129,7 +129,7 @@
             sql = sql%(' '.join(join_list), self.db.arg, ' '.join(match_list))
             self.db.cursor.execute(sql, l)
 
-            r = map(lambda x: x[0], self.db.cursor.fetchall())
+            r = [x[0] for x in self.db.cursor.fetchall()]
             if not r:
                 return []
 

Roundup Issue Tracker: http://roundup-tracker.org/