[pypy-commit] pypy py3.3: fix per new ast.py

pjenvey noreply at buildbot.pypy.org
Wed Aug 27 05:58:35 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3.3
Changeset: r73078:1d260c164b38
Date: 2014-08-26 16:41 -0700
http://bitbucket.org/pypy/pypy/changeset/1d260c164b38/

Log:	fix per new ast.py

diff --git a/pypy/interpreter/astcompiler/validate.py b/pypy/interpreter/astcompiler/validate.py
--- a/pypy/interpreter/astcompiler/validate.py
+++ b/pypy/interpreter/astcompiler/validate.py
@@ -21,7 +21,7 @@
 def expr_context_name(ctx):
     if not 1 <= ctx <= len(ast.expr_context_to_class):
         return '??'
-    return ast.expr_context_to_class[ctx - 1].typedef.name
+    return ast.expr_context_to_class[ctx - 1].__name__[1:]
 
 def _check_context(expected_ctx, actual_ctx):
     if expected_ctx != actual_ctx:


More information about the pypy-commit mailing list