]> granicus.if.org Git - python/commitdiff
Patch #880621: the last message of a Babyl mailbox ends in '\037' instead of
authorJohannes Gijsbers <jlg@dds.nl>
Sat, 21 Aug 2004 12:30:26 +0000 (12:30 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sat, 21 Aug 2004 12:30:26 +0000 (12:30 +0000)
'\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.

Lib/mailbox.py

index ab40df7e0d1e9c84a9f8431ff77e535e9da7af58..c89c1a47b7f9501a76be47698ea606c5e48a1127 100755 (executable)
@@ -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