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 mark.dickinson
Recipients belopolsky, brett.cannon, eric.araujo, mark.dickinson, pitrou
Date 2010-06-15.09:16:54
SpamBayes Score 0.0003552521
Marked as misclassified No
Message-id <>
Sorry to be nitpicky, but:

(a) the line[-2] produces "IndexError: string index out of range" on empty
lines, and

(b) this won't detect trailing whitespace on the last line of a file, if there's no newline at the end of the file.  Actually, it might also be worth checking that there *is* a newline at the end of the file;  this is actually required by the C standards.  (E.g., C99 "A source file that is not empty shall end in a new-line character".)
Date User Action Args
2010-06-15 09:16:57mark.dickinsonsetrecipients: + mark.dickinson, brett.cannon, belopolsky, pitrou, eric.araujo
2010-06-15 09:16:56mark.dickinsonsetmessageid: <>
2010-06-15 09:16:55mark.dickinsonlinkissue8912 messages
2010-06-15 09:16:54mark.dickinsoncreate