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 Brian.Bossé
Recipients Brian.Bossé, kristjan.jonsson, nick.caruso, rhettinger
Date 2010-10-19.10:11:02
SpamBayes Score 1.313275e-06
Marked as misclassified No
Message-id <1287483064.15.0.991140409885.issue9974@psf.upfronthosting.co.za>
In-reply-to
Content
Yup, that's related to ENDMARKER being tokenized to its own line, even if EOF happens at the end of the last line of actual code.  I don't know if anything relies on that behavior so I can't really suggest changing it.

My patch handles the described situation, albeit a bit poorly as I mentioned in comment 2.
History
Date User Action Args
2010-10-19 10:11:04Brian.Bossésetrecipients: + Brian.Bossé, rhettinger, kristjan.jonsson, nick.caruso
2010-10-19 10:11:04Brian.Bossésetmessageid: <1287483064.15.0.991140409885.issue9974@psf.upfronthosting.co.za>
2010-10-19 10:11:02Brian.Bossélinkissue9974 messages
2010-10-19 10:11:02Brian.Bossécreate