Merge pull request #1134 from enkore/fix/SyncFileX

SyncFile: open with O_EXCL (or equivalent)
This commit is contained in:
TW 2016-06-04 23:33:59 +02:00
commit 808379921c

View file

@ -75,7 +75,7 @@ class SyncFile:
"""
def __init__(self, path):
self.fd = open(path, 'wb')
self.fd = open(path, 'xb')
self.fileno = self.fd.fileno()
def __enter__(self):