mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Implement seed, tell, and flush to AtomicFile.
This commit is contained in:
parent
36812798fb
commit
ced2e7b72d
@ -174,6 +174,15 @@ class AtomicFile(object):
|
||||
os.remove(self.tempFilename)
|
||||
self.rolledback = True
|
||||
|
||||
def seek(self, offset):
|
||||
return self._fd.seek(offset)
|
||||
|
||||
def tell(self):
|
||||
return self._fd.tell()
|
||||
|
||||
def flush(self):
|
||||
return self._fd.flush()
|
||||
|
||||
def close(self):
|
||||
if not self.rolledback:
|
||||
self._fd.close()
|
||||
|
Loading…
Reference in New Issue
Block a user