mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Issue #24833: Add attribute reference needed for 3.x.
This commit is contained in:
parent
233983380d
commit
c6dd5b1c66
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def tabnanny(self, filename):
|
||||||
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…
Add table
Add a link
Reference in a new issue