This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy, Сергей Лисов
Date 2015-08-14.20:43:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439584982.87.0.599147766736.issue24833@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-14 20:43:02terry.reedysetrecipients: + terry.reedy, Сергей Лисов
2015-08-14 20:43:02terry.reedysetmessageid: <1439584982.87.0.599147766736.issue24833@psf.upfronthosting.co.za>
2015-08-14 20:43:02terry.reedylinkissue24833 messages
2015-08-14 20:43:02terry.reedycreate