pylintext.py
branchstable
changeset 8743 27a83746aebd
parent 8696 0bb18407c053
child 9311 8833ead6f3e4
--- a/pylintext.py	Tue Mar 19 16:56:46 2013 +0100
+++ b/pylintext.py	Wed Mar 20 17:40:25 2013 +0100
@@ -17,7 +17,7 @@
 def cubicweb_transform(module):
     # handle objectify_predicate decorator (and its former name until bw compat
     # is kept). Only look at module level functions, should be enough.
-    for assnodes in module.locals.values():
+    for assnodes in module.locals.itervalues():
         for node in assnodes:
             if isinstance(node, scoped_nodes.Function) and node.decorators:
                 for decorator in node.decorators.nodes: