rset.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 616 545a7e18c47f
child 1398 5fe84a5f7035
--- a/rset.py	Mon Mar 23 17:38:30 2009 +0100
+++ b/rset.py	Mon Mar 23 17:55:59 2009 +0100
@@ -179,8 +179,7 @@
         else:
             entities = sorted(enumerate(self),
                               key=lambda (i, e): keyfunc(e), reverse=reverse)
-
-        for index, entity in entities:
+        for index, _ in entities:
             rows.append(self.rows[index])
             descr.append(self.description[index])
         rset.rowcount = len(rows)
@@ -210,7 +209,7 @@
         for idx, line in enumerate(self):
             if col >= 0:
                 try:
-                    key = self.get_entity(idx,col)
+                    key = self.get_entity(idx, col)
                 except NotAnEntity:
                     key = line[col]
             else: