cpython: 23beb7f8561a (original) (raw)

Mercurial > cpython

changeset 77852:23beb7f8561a

#5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush() [#5346]

Petri Lehtinen petri@digip.org
date Fri, 29 Jun 2012 15:12:54 +0300
parents 5a0ec296b287(current diff)13fb85ef0eea(diff)
children f908faeba369 9523c122d6fc
files Lib/mailbox.py Lib/test/test_mailbox.py Misc/NEWS
diffstat 3 files changed, 23 insertions(+), 0 deletions(-)[+] [-] Lib/mailbox.py 3 Lib/test/test_mailbox.py 17 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -691,6 +691,9 @@ class _singlefileMailbox(Mailbox): _sync_close(new_file) # self._file is about to get replaced, so no need to sync. self._file.close()

--- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -969,6 +969,23 @@ class _TestSingleFile(TestMailbox): self._box = self._factory(self._path) self.assertEqual(len(self._box), 1)

+

+

+

+ class _TestMboxMMDF(_TestSingleFile):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -14,6 +14,9 @@ Core and Builtins Library ------- +- Issue #5346: Preserve permissions of mbox, MMDF and Babyl mailbox