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

ac at codespeak.net ac at codespeak.net
Tue Oct 4 21:59:22 CEST 2005


Author: ac
Date: Tue Oct  4 21:59:22 2005
New Revision: 18169

Modified:
   pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py
Log:
Use the correct token linenumber.

Modified: pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py	Tue Oct  4 21:59:22 2005
@@ -95,7 +95,7 @@
         return True
 
     def token(self, codename, value, source):
-        lineno = source.current_lineno()
+        lineno = source._token_lnum
         if value is None:
             if codename not in ( NEWLINE, INDENT, DEDENT, ENDMARKER ):
                 value = tok_rpunct.get(codename, "unknown op")



More information about the Pypy-commit mailing list