24
24
Open this as for a regular file, then use commit() to move into
25
25
place or abort() to cancel.
30
def __init__(self, filename, mode='wb', encoding=None):
31
32
if mode != 'wb' and mode != 'wt':
32
33
raise ValueError("invalid AtomicFile mode %r" % mode)