cpython: 69f654f718f4 (original) (raw)

Mercurial > cpython

changeset 77850:69f654f718f4 2.7

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

Petri Lehtinen petri@digip.org
date Fri, 29 Jun 2012 15:09:12 +0300
parents 3d7a75e945ee
children ee51e3aef302 bb4b184e5b33
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 @@ -665,6 +665,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 @@ -848,6 +848,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 @@ -75,6 +75,9 @@ Core and Builtins Library ------- +- Issue #5346: Preserve permissions of mbox, MMDF and Babyl mailbox