Issue with backslashes again in the fast parser.

This commit is contained in:
Dave Halter committed 2015-02-21 18:07:21 +01:00
1 parent 0b5a509e83
commit 3ec96b25cc
4 files changed
+27 -9

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ class PgenParser(object):
ilabel = self.classify(type, value, start_pos)
except ParseError:
# Currently we ignore tokens like `?`.
print('invalid token', tokenize.tok_name[type], value)
print('invalid token', tokenize.tok_name[type], repr(value))
return
# Loop until the token is shifted; may raise exceptions