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

adim at codespeak.net adim at codespeak.net
Sun Jul 3 19:10:38 CEST 2005


Author: adim
Date: Sun Jul  3 19:10:38 2005
New Revision: 14172

Modified:
   pypy/dist/pypy/interpreter/pyparser/pythonlexer.py
Log:
define pos out of the loop to make the annotator happy

Modified: pypy/dist/pypy/interpreter/pyparser/pythonlexer.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/pythonlexer.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/pythonlexer.py	Sun Jul  3 19:10:38 2005
@@ -109,7 +109,7 @@
     last_comment = ''
     encoding = None
     strstart = (0, 0)
-
+    pos = -1
     lines.append('') # XXX HACK probably not needed
     endDFA = automata.DFA([], []) # XXX Make the translator happy
     line = ''                 # XXX Make the translator happy



More information about the Pypy-commit mailing list