44
44
place or abort() to cancel.
47
__slots__ = ['tmpfilename', 'realfilename', '_fd', '_new_mode']
49
def __init__(self, filename, mode='wb', new_mode=0666):
49
def __init__(self, filename, mode='wb', new_mode=None):
51
51
assert mode in ('wb', 'wt'), \
52
52
"invalid AtomicFile mode %r" % mode