Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are

contiguous.
This commit is contained in:
Jeremy Hylton 2001-08-28 17:28:33 +00:00
parent cbfc855f57
commit 2ac9c3eec5
2 changed files with 2 additions and 2 deletions

View File

@ -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_:

View File

@ -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_: