summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-28 17:28:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-28 17:28:33 (GMT)
commit2ac9c3eec5807b6032e5aef6481fcf67c1965efc (patch)
treee23b3ceeda27b2b70fa8afba66baf785e84dba20 /Tools
parentcbfc855f57ab6ad7920857bba3a8e2475ef0fb33 (diff)
downloadcpython-2ac9c3eec5807b6032e5aef6481fcf67c1965efc.zip
cpython-2ac9c3eec5807b6032e5aef6481fcf67c1965efc.tar.gz
cpython-2ac9c3eec5807b6032e5aef6481fcf67c1965efc.tar.bz2
Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are
contiguous.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/compiler/pycodegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/compiler/compiler/pycodegen.py b/Tools/compiler/compiler/pycodegen.py
index 37dbcfd..882e6b1 100644
--- a/Tools/compiler/compiler/pycodegen.py
+++ b/Tools/compiler/compiler/pycodegen.py
@@ -363,7 +363,7 @@ class CodeGenerator:
self.visit(node.assign)
self.visit(node.body)
self.emit('JUMP_ABSOLUTE', start)
- self.startBlock(anchor)
+ self.nextBlock(anchor)
self.emit('POP_BLOCK')
self.loops.pop()
if node.else_: