mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Change the default of allowEmptyOverwrite, because it's annoying.
This commit is contained in:
parent
8a352be8ff
commit
87ff856d11
@ -712,7 +712,7 @@ class AtomicFile(file):
|
||||
"""Used for files that need to be atomically written -- i.e., if there's a
|
||||
failure, the original file remains, unmodified. mode must be 'w' or 'wb'"""
|
||||
def __init__(self, filename, mode='w',
|
||||
allowEmptyOverwrite=False, tmpDir=None):
|
||||
allowEmptyOverwrite=True, tmpDir=None):
|
||||
if mode not in ('w', 'wb'):
|
||||
raise ValueError, 'Invalid mode: %r' % mode
|
||||
self.rolledback = False
|
||||
|
Loading…
Reference in New Issue
Block a user