summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-10-27 16:55:34 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-10-27 16:55:34 (GMT)
commit0f87183cf58374f04d12d46c7b885b4a3eaec177 (patch)
treeac6c4831aa4780740b9ed68e66eccdcde53a9d0d /Lib/mailbox.py
parent41eb7164df4f779864cfad52e5470286ef4fcb4c (diff)
downloadcpython-0f87183cf58374f04d12d46c7b885b4a3eaec177.zip
cpython-0f87183cf58374f04d12d46c7b885b4a3eaec177.tar.gz
cpython-0f87183cf58374f04d12d46c7b885b4a3eaec177.tar.bz2
[Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-xLib/mailbox.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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."""