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

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


https://hg.python.org/cpython/rev/724d9b589cfc
changeset:   97385:724d9b589cfc
branch:      2.7
parent:      97376:208d6d14c2a3
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Fri Aug 14 16:59:36 2015 -0400
summary:
  Issue #24833: Add attribute reference needed for 3.x, but optional for 2.7,
to keep synchronized.

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
@@ -71,7 +71,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