[issue24833] IDLE tabnanny check fails

Terry J. Reedy report at bugs.python.org
Fri Aug 14 22:43:02 CEST 2015


Terry J. Reedy added the comment:

I think there are two issues here.

1. tabnanny is run on the editor file every time Check Module Alt-X or Run Module F5 is used. However, Tabnanny is only rum after the file has been compiled as syntactically correct.  I don't think that the tokenize module should fail on a file that compiles. Please cut your file to the minimum needed to raise an error.  Then upload the complete traceback.

2. When a TokenError does occur, Idle executes
            except tokenize.TokenError as msg:
                msgtxt, (lineno, start) = msg
This must be the line that failed (the traceback would have said).  It is line 74 in 3.4.3.  (Which version are you using?)  The fix is to add '.args' at the end.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24833>
_______________________________________


More information about the Python-bugs-list mailing list