pylintext.py
changeset 10663 54b8a1f249fb
parent 9311 8833ead6f3e4
child 10907 9ae707db5265
--- a/pylintext.py	Tue Sep 15 16:15:03 2015 +0200
+++ b/pylintext.py	Tue Oct 13 15:09:22 2015 +0200
@@ -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.itervalues():
+    for assnodes in module.locals.values():
         for node in assnodes:
             if isinstance(node, scoped_nodes.Function) and node.decorators:
                 for decorator in node.decorators.nodes: