Fix error in tree traversal in Nodes.py.
authorCraig Citro <craigcitro@gmail.com>
Wed, 30 Dec 2009 07:09:22 +0000 (23:09 -0800)
committerCraig Citro <craigcitro@gmail.com>
Wed, 30 Dec 2009 07:09:22 +0000 (23:09 -0800)
Cython/Compiler/Nodes.py

index 9b962c01506cca0be2e58dc9a6d949475c118133..1ee0ce13d4c00f57a220a4dc375f14e2d572f95c 100644 (file)
@@ -3343,8 +3343,7 @@ class PrintStatNode(StatNode):
             self.arg_tuple.free_temps(code)
 
     def generate_function_definitions(self, env, code):
-        for item in self.arg_tuple:
-            item.generate_function_definitions(env, code)
+        self.arg_tuple.generate_function_definitions(env, code)
 
     def annotate(self, code):
         self.arg_tuple.annotate(code)