31
30
An encoding can be specified; otherwise the default is ascii.
34
def __init__(self, filename, mode='wb', encoding=None, new_mode=None):
33
def __init__(self, filename, mode='wb', encoding=None):
35
34
if mode != 'wb' and mode != 'wt':
36
35
raise ValueError("invalid AtomicFile mode %r" % mode)