[Python-checkins] r68340 - sandbox/trunk/2to3/lib2to3/pgen2/driver.py
georg.brandl
python-checkins at python.org
Mon Jan 5 09:11:39 CET 2009
Author: georg.brandl
Date: Mon Jan 5 09:11:39 2009
New Revision: 68340
Log:
Fix undefined locals in parse_tokens().
Modified:
sandbox/trunk/2to3/lib2to3/pgen2/driver.py
Modified: sandbox/trunk/2to3/lib2to3/pgen2/driver.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/pgen2/driver.py (original)
+++ sandbox/trunk/2to3/lib2to3/pgen2/driver.py Mon Jan 5 09:11:39 2009
@@ -77,7 +77,8 @@
column = 0
else:
# We never broke out -- EOF is too soon (how can this happen???)
- raise parse.ParseError("incomplete input", t, v, x)
+ raise parse.ParseError("incomplete input",
+ type, value, (prefix, start))
return p.rootnode
def parse_stream_raw(self, stream, debug=False):
More information about the Python-checkins
mailing list