Commit 4db626f9 authored by Neil Schemenauer's avatar Neil Schemenauer

Overhaul Lib/compiler block ordering. The previous code was filled with

hacks.  The new code is based on issue #2472 posted by Antoine Pitrou.  I
did some further cleanups of the pyassem code and optimized the block
ordering pass.
parent 0d6705b2
This diff is collapsed.
......@@ -671,7 +671,7 @@ class CodeGenerator:
self.startBlock(anchor)
self.emit('POP_BLOCK')
self.setups.pop()
self.startBlock(end)
self.nextBlock(end)
self.emit('LOAD_CONST', None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment