[pypy-svn] pypy fast-forward: translation fix

amauryfa commits-noreply at bitbucket.org
Tue Jan 11 13:25:05 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40580:531178e23ef4
Date: 2011-01-11 13:23 +0100
http://bitbucket.org/pypy/pypy/changeset/531178e23ef4/

Log:	translation fix

diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -563,7 +563,7 @@
         self.emit_jump(ops.JUMP_FORWARD, otherwise)
         self.use_next_block(exc)
         for handler in te.handlers:
-            assert isinstance(handler, ast.excepthandler)
+            assert isinstance(handler, ast.ExceptHandler)
             self.update_position(handler.lineno, True)
             next_except = self.new_block()
             if handler.type:


More information about the Pypy-commit mailing list