[Python-checkins] cpython (3.4): Issue #24833: Add attribute reference needed for 3.x.

terry.reedy python-checkins at python.org
Fri Aug 14 23:00:31 CEST 2015


https://hg.python.org/cpython/rev/cce226356477
changeset:   97386:cce226356477
branch:      3.4
parent:      97382:53d2a7c023bc
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Fri Aug 14 16:59:42 2015 -0400
summary:
  Issue #24833: Add attribute reference needed for 3.x.

files:
  Lib/idlelib/ScriptBinding.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -69,7 +69,7 @@
             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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list