A.M. Kuchling <[EMAIL PROTECTED]> added the comment:
There's another use of os.open in the module in the MH class's
__setitem__ that doesn't provide a mode, but I think this occurrence is
harmless; it's truncating a file that always exists, so the existing
mode is preserved. Here's the little test I tried:
#!./python.exe
import os
os.umask(0077)
from mailbox import MH
m = MH('/tmp/foobar')
m.add('123') ; m.add('456')
m[1] = 'abc' ; m[2] = 'def'
m.close()
The files /tmp/foobar/{1,2} both end up with 0600 permissions.
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3228>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com