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

arigo at codespeak.net arigo at codespeak.net
Thu Aug 25 16:09:57 CEST 2005


Author: arigo
Date: Thu Aug 25 16:09:56 2005
New Revision: 16497

Modified:
   pypy/dist/pypy/interpreter/pyparser/pythonparse.py
Log:
Use the SyntaxError message "invalid syntax" instead of just "error".  Gives
more compliant tracebacks...



Modified: pypy/dist/pypy/interpreter/pyparser/pythonparse.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/pythonparse.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/pythonparse.py	Thu Aug 25 16:09:56 2005
@@ -48,7 +48,7 @@
         if not result:
             line, lineno = src.debug()
             # XXX needs better error messages
-            raise ParseError("error", lineno, -1, line)
+            raise ParseError("invalid syntax", lineno, -1, line)
             # return None
         return builder
 



More information about the Pypy-commit mailing list