diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-14 20:59:36 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-14 20:59:36 (GMT) |
commit | 87da49888e2d728438d243f47dc1869311b2a0ec (patch) | |
tree | 65b52980ab6f02fa815e381d1e61b2580ec4c164 | |
parent | 223546d55cddf0e1c52e114201747ab154216fd4 (diff) | |
download | cpython-87da49888e2d728438d243f47dc1869311b2a0ec.zip cpython-87da49888e2d728438d243f47dc1869311b2a0ec.tar.gz cpython-87da49888e2d728438d243f47dc1869311b2a0ec.tar.bz2 |
Issue #24833: Add attribute reference needed for 3.x, but optional for 2.7,
to keep synchronized.
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index fcaed25..18c0565 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -71,7 +71,7 @@ class ScriptBinding: try: tabnanny.process_tokens(tokenize.generate_tokens(f.readline)) except tokenize.TokenError as msg: - msgtxt, (lineno, start) = msg + msgtxt, (lineno, start) = msg.args self.editwin.gotoline(lineno) self.errorbox("Tabnanny Tokenizing Error", "Token Error: %s" % msgtxt) |