pylintext.py
changeset 8696 0bb18407c053
parent 8216 99ff746e8de8
child 9311 8833ead6f3e4
--- a/pylintext.py	Thu Feb 14 15:38:25 2013 +0100
+++ b/pylintext.py	Thu Feb 14 16:01:24 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: