mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
#11062: Fix adding a message from file to Babyl mailbox
This commit is contained in:
parent
2b209cd78d
commit
3d12c4317c
3 changed files with 9 additions and 13 deletions
|
@ -1443,9 +1443,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