[pypy-svn] r17759 - pypy/dist/pypy/interpreter/pyparser

ac at codespeak.net ac at codespeak.net
Thu Sep 22 10:27:09 CEST 2005


Author: ac
Date: Thu Sep 22 10:27:09 2005
New Revision: 17759

Modified:
   pypy/dist/pypy/interpreter/pyparser/astbuilder.py
Log:
Make test_syntax pass with astcompiler.

Modified: pypy/dist/pypy/interpreter/pyparser/astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/astbuilder.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/astbuilder.py	Thu Sep 22 10:27:09 2005
@@ -375,8 +375,12 @@
             raise ParseError("can't assign to list comprehension",
                              lineno, 0, '')
         elif isinstance(ast_node, ast.CallFunc):
-            raise ParseError("can't assign to function call",
-                             lineno, 0, '')
+            if flags == consts.OP_DELETE:
+                raise ParseError("can't delete function call",
+                                 lineno, 0, '')
+            else:
+                raise ParseError("can't assign to function call",
+                                 lineno, 0, '')
         else:
             raise ParseError("can't assign to non-lvalue",
                              lineno, 0, '') 



More information about the Pypy-commit mailing list