From af093ca3c3c20d9a34c9f697f710ce6c5788a2e3 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 25 Mar 2009 05:37:19 -0700 Subject: [PATCH] loop cleanup, comment --HG-- extra : transplant_source : %96m%88%15%985T%8E%FF%CEW%16%5B%E3%1E%90%8E%23%00%AE --- Cython/Compiler/Nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ef4c823d..ec3d3317 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3997,9 +3997,9 @@ class ForFromStatNode(LoopNode, StatNode): self.body.generate_execution_code(code) code.put_label(code.continue_label) if self.py_loopvar_node: - - self.py_loopvar_node.generate_evaluation_code(code) - self.target.generate_assignment_code(self.py_loopvar_node, code) + # Reassign py variable to loop var here. + # (For consistancy, should rarely come up in practice.) + pass code.putln("}") break_label = code.break_label code.set_loop_labels(old_loop_labels) -- 2.26.2