Fix typo
This commit is contained in:
parent
d45e2de1c9
commit
fa9d39c5fb
|
@ -76,7 +76,7 @@ def simple_eval(source):
|
|||
taken from http://effbot.org/zone/simple-iterator-parser.htm"""
|
||||
src = cStringIO.StringIO(source).readline
|
||||
src = tokenize.generate_tokens(src)
|
||||
src = (token for token in src if token[0] is not tokenize.NL37)
|
||||
src = (token for token in src if token[0] is not tokenize.NL)
|
||||
res = atom(src.next, src.next())
|
||||
if src.next()[0] is not tokenize.ENDMARKER:
|
||||
raise SyntaxError("bogus data after expression")
|
||||
|
|
Loading…
Reference in New Issue