commit | 7d1d540cc371e7c6ebfb3bc1c99699e5dcbdafe5 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Fri Oct 27 16:57:44 2006 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Fri Oct 27 16:57:44 2006 +0000 |
tree | 2f6c90b580bd47e71a2d9873f1600b9ac9e7e38a | |
parent | 3d6a834e29f83d043bd0bb239000cd0361eb94f6 [diff] [blame] |
[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index b72128b..eab03af 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py
@@ -578,7 +578,7 @@ 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."""