[pypy-svn] r67194 - pypy/trunk/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Tue Aug 25 13:40:08 CEST 2009
Author: benjamin
Date: Tue Aug 25 13:40:07 2009
New Revision: 67194
Modified:
pypy/trunk/pypy/interpreter/astcompiler/asthelpers.py
Log:
shut up annotator warnings
Modified: pypy/trunk/pypy/interpreter/astcompiler/asthelpers.py
==============================================================================
--- pypy/trunk/pypy/interpreter/astcompiler/asthelpers.py (original)
+++ pypy/trunk/pypy/interpreter/astcompiler/asthelpers.py Tue Aug 25 13:40:07 2009
@@ -10,6 +10,15 @@
setattr(ast, "UnacceptableExpressionContext", UnacceptableExpressionContext)
+class __extend__(ast.AST):
+
+ def as_node_list(self, space):
+ raise AssertionError("only for expressions")
+
+ def set_context(self, ctx):
+ raise AssertionError("should only be on expressions")
+
+
class __extend__(ast.expr):
constant = False
More information about the Pypy-commit
mailing list