mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
This commit is contained in:
parent
41eb7164df
commit
0f87183cf5
2 changed files with 17 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ class _singlefileMailbox(Mailbox):
|
|||
self._toc = new_toc
|
||||
self._pending = False
|
||||
if self._locked:
|
||||
_lock_file(new_file, dotlock=False)
|
||||
_lock_file(self._file, dotlock=False)
|
||||
|
||||
def _pre_mailbox_hook(self, f):
|
||||
"""Called before writing the mailbox to file f."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue