diff options
| author | Petri Lehtinen <petri@digip.org> | 2012-06-15 21:01:39 +0300 |
|---|---|---|
| committer | Petri Lehtinen <petri@digip.org> | 2012-06-15 21:01:56 +0300 |
| commit | a717d563d0807b4c95231fcebfd3fd7b5d567c26 (patch) | |
| tree | 8f0c255e57d09ccb60ef2ae0c77306882069e718 /Lib/mailbox.py | |
| parent | 3730a17a58d9058b0880202050a8c1e4ea193e8f (diff) | |
| parent | 02653f1b111c8b9f64de8960d9a55d4f5821e257 (diff) | |
| download | cpython-git-a717d563d0807b4c95231fcebfd3fd7b5d567c26.tar.gz | |
#15036: Make a repeated changes and flushes work with single-file mailboxes
Diffstat (limited to 'Lib/mailbox.py')
| -rw-r--r-- | Lib/mailbox.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 7a29555e4a..d86ad94478 100644 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -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) |
