mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#15036: Make a repeated changes and flushes work with single-file mailboxes
This commit is contained in:
commit
a717d563d0
3 changed files with 16 additions and 0 deletions
|
@ -675,6 +675,7 @@ class _singlefileMailbox(Mailbox):
|
|||
new_file.write(buffer)
|
||||
new_toc[key] = (new_start, new_file.tell())
|
||||
self._post_message_hook(new_file)
|
||||
self._file_length = new_file.tell()
|
||||
except:
|
||||
new_file.close()
|
||||
os.remove(new_file.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue