mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
#11062: Fix adding a message from file to Babyl mailbox
This commit is contained in:
parent
becfcc0a6b
commit
2d44ceeada
3 changed files with 16 additions and 1 deletions
|
|
@ -1386,9 +1386,9 @@ class Babyl(_singlefileMailbox):
|
|||
line = message.readline()
|
||||
self._file.write(line.replace('\n', os.linesep))
|
||||
if line == '\n' or line == '':
|
||||
self._file.write('*** EOOH ***' + os.linesep)
|
||||
if first_pass:
|
||||
first_pass = False
|
||||
self._file.write('*** EOOH ***' + os.linesep)
|
||||
message.seek(original_pos)
|
||||
else:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue