From: Terry Jan Reedy Date: Fri, 14 Aug 2015 20:59:42 +0000 (-0400) Subject: Issue #24833: Add attribute reference needed for 3.x. X-Git-Tag: v3.5.1rc1~427^2~89^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6dd5b1c66fc1f3f795f4f2a45ef88a83c005b16;p=python Issue #24833: Add attribute reference needed for 3.x. --- diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index e8cb2fc6b7..e5636dfe9a 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -69,7 +69,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)