[pypy-svn] pypy fast-forward: Fix astbuilder tests
amauryfa
commits-noreply at bitbucket.org
Tue Jan 11 13:08:18 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40579:3e0c471c72d9
Date: 2011-01-11 12:59 +0100
http://bitbucket.org/pypy/pypy/changeset/3e0c471c72d9/
Log: Fix astbuilder tests
diff --git a/pypy/interpreter/astcompiler/astbuilder.py b/pypy/interpreter/astcompiler/astbuilder.py
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -401,7 +401,7 @@
target_child = exc.children[3]
target = self.handle_expr(target_child)
self.set_context(target, ast.Store)
- return ast.excepthandler(test, target, suite, exc.lineno, exc.column)
+ return ast.ExceptHandler(test, target, suite, exc.lineno, exc.column)
def handle_try_stmt(self, try_node):
body = self.handle_suite(try_node.children[2])
More information about the Pypy-commit
mailing list