]> granicus.if.org Git - python/commit
Fix for SF bug #1072623. When the last line of the input string does not end
authorBarry Warsaw <barry@python.org>
Sun, 28 Nov 2004 00:21:42 +0000 (00:21 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 28 Nov 2004 00:21:42 +0000 (00:21 +0000)
commit2e8c1f189a497179b7fd7bd5dad61c3189167849
treed155df0293d728c40f6822689a28c990eb4dd633
parentf7f9b6cb2df7a933f687622044a86cd49a7d9f9b
Fix for SF bug #1072623.  When the last line of the input string does not end
in a newline, and it's an end boundary, the FeedParser wasn't recognizing it
as such.  Tweak the regexp to make the ending linesep optional.

For grins, clear self._partial when closing the BufferedSubFile.

Added a test case.
Lib/email/FeedParser.py
Lib/email/test/test_email.py