[pypy-svn] r66394 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 18 22:19:46 CEST 2009
Author: benjamin
Date: Sat Jul 18 22:19:46 2009
New Revision: 66394
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
annotate excepthandler right
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py Sat Jul 18 22:19:46 2009
@@ -482,6 +482,7 @@
self.emit_jump(ops.JUMP_FORWARD, otherwise)
self.use_next_block(exc)
for handler in te.handlers:
+ assert isinstance(handler, ast.excepthandler)
self.update_position(handler.lineno)
next_except = self.new_block()
if handler.type:
More information about the Pypy-commit
mailing list