[pypy-svn] r50428 - pypy/branch/simpler-pyassem/pypy/interpreter/astcompiler
arigo at codespeak.net
arigo at codespeak.net
Mon Jan 7 16:49:55 CET 2008
Author: arigo
Date: Mon Jan 7 16:49:54 2008
New Revision: 50428
Modified:
pypy/branch/simpler-pyassem/pypy/interpreter/astcompiler/pycodegen.py
Log:
cannot pass None any more to nextBlock().
Modified: pypy/branch/simpler-pyassem/pypy/interpreter/astcompiler/pycodegen.py
==============================================================================
--- pypy/branch/simpler-pyassem/pypy/interpreter/astcompiler/pycodegen.py (original)
+++ pypy/branch/simpler-pyassem/pypy/interpreter/astcompiler/pycodegen.py Mon Jan 7 16:49:54 2008
@@ -786,7 +786,6 @@
self.nextBlock(handlers)
last = len(node.handlers) - 1
- next = None
for expr, target, body in node.handlers:
if expr:
self.set_lineno(expr)
@@ -806,8 +805,8 @@
self.emit('POP_TOP')
body.accept( self )
self.emitop_block('JUMP_FORWARD', end)
- self.nextBlock(next)
if expr: # XXX
+ self.nextBlock(next)
self.emit('POP_TOP')
self.emit('END_FINALLY')
if node.else_:
More information about the pypy-svn
mailing list