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 <rep...@bugs.python.org> <http://bugs.python.org/issue24833> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com