diff options
author | Johannes Gijsbers <jlg@dds.nl> | 2004-08-21 12:30:26 (GMT) |
---|---|---|
committer | Johannes Gijsbers <jlg@dds.nl> | 2004-08-21 12:30:26 (GMT) |
commit | 6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5 (patch) | |
tree | f88b75926a3a5cec317a43a740dc8cf52e2839eb /Lib/mailbox.py | |
parent | 6d63a8dd09a3be6b5afd7a327bf86bca6be6ff0d (diff) | |
download | cpython-6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5.zip cpython-6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5.tar.gz cpython-6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5.tar.bz2 |
Patch #880621: the last message of a Babyl mailbox ends in '\037' instead of
'\037\014\n' (see http://quimby.gnus.org/notes/BABYL) so look for that as well,
so that applications won't get '\037' as the last line of the last message.
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-x | Lib/mailbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index ab40df7..c89c1a4 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -259,7 +259,7 @@ class BabylMailbox(_Mailbox): line = self.fp.readline() if not line: return - if line == '\037\014\n': + if line == '\037\014\n' or line == '\037': self.fp.seek(pos) return |