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 belopolsky
Recipients RafeSacks, belopolsky, ggenellina, zsolt
Date 2008-12-09.16:43:38
SpamBayes Score 5.326272e-07
Marked as misclassified No
Message-id <1228841021.74.0.940350841847.issue4335@psf.upfronthosting.co.za>
In-reply-to
Content
You convinced me.  After all, if python interpreter does not complain 
about missing end-of-line and processes the unterminated line, getsource 
should report it.

Here is a patch that passes existing tests and adds a "NoEOF" test case.

I am adding 2.5.3 to the list of versions, but someone will have to 
lobby python-dev to make it happen.

Note that I've modernized the code a little bit by switching from a 
callback tokenizer to the newer token generator.  Hopefully this will 
make it easier to review the code, but I can easily produce an old-style  
patch as well.
History
Date User Action Args
2008-12-09 16:43:41belopolskysetrecipients: + belopolsky, ggenellina, RafeSacks, zsolt
2008-12-09 16:43:41belopolskysetmessageid: <1228841021.74.0.940350841847.issue4335@psf.upfronthosting.co.za>
2008-12-09 16:43:41belopolskylinkissue4335 messages
2008-12-09 16:43:40belopolskycreate