mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
6d63a8dd09
commit
6abc685a03
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue