mirror of https://github.com/python/cpython
Merge with 3.4
This commit is contained in:
commit
a0bcfaff9a
|
@ -69,7 +69,7 @@ class ScriptBinding:
|
||||||
try:
|
try:
|
||||||
tabnanny.process_tokens(tokenize.generate_tokens(f.readline))
|
tabnanny.process_tokens(tokenize.generate_tokens(f.readline))
|
||||||
except tokenize.TokenError as msg:
|
except tokenize.TokenError as msg:
|
||||||
msgtxt, (lineno, start) = msg
|
msgtxt, (lineno, start) = msg.args
|
||||||
self.editwin.gotoline(lineno)
|
self.editwin.gotoline(lineno)
|
||||||
self.errorbox("Tabnanny Tokenizing Error",
|
self.errorbox("Tabnanny Tokenizing Error",
|
||||||
"Token Error: %s" % msgtxt)
|
"Token Error: %s" % msgtxt)
|
||||||
|
|
Loading…
Reference in New Issue