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