mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
#11062: Fix adding a message from file to Babyl mailbox
This commit is contained in:
commit
aae61b8cd0
3 changed files with 9 additions and 13 deletions
|
@ -1440,9 +1440,9 @@ class Babyl(_singlefileMailbox):
|
|||
line = line[:-1] + b'\n'
|
||||
self._file.write(line.replace(b'\n', linesep))
|
||||
if line == b'\n' or not line:
|
||||
self._file.write(b'*** EOOH ***' + linesep)
|
||||
if first_pass:
|
||||
first_pass = False
|
||||
self._file.write(b'*** EOOH ***' + linesep)
|
||||
message.seek(original_pos)
|
||||
else:
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue