[pypy-svn] r14306 - pypy/branch/dist-2.4.1/pypy/interpreter/pyparser

arigo at codespeak.net arigo at codespeak.net
Tue Jul 5 20:10:34 CEST 2005


Author: arigo
Date: Tue Jul  5 20:10:33 2005
New Revision: 14306

Modified:
   pypy/branch/dist-2.4.1/pypy/interpreter/pyparser/pythonlexer.py
Log:
Fixing the error message.


Modified: pypy/branch/dist-2.4.1/pypy/interpreter/pyparser/pythonlexer.py
==============================================================================
--- pypy/branch/dist-2.4.1/pypy/interpreter/pyparser/pythonlexer.py	(original)
+++ pypy/branch/dist-2.4.1/pypy/interpreter/pyparser/pythonlexer.py	Tue Jul  5 20:10:33 2005
@@ -205,9 +205,8 @@
 
                 if start == end:
                     # Nothing matched!!!
-                    raise TokenError("EOF in multi-line statement", line,
-                                 (lnum, pos), token_list)
-
+                    raise TokenError("Unknown character", line,
+                                 (lnum, start), token_list)
 
                 spos, epos, pos = (lnum, start), (lnum, end), end
                 token, initial = line[start:end], line[start]



More information about the Pypy-commit mailing list