mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +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)
|
os.remove(self.tempFilename)
|
||||||
self.rolledback = True
|
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):
|
def close(self):
|
||||||
if not self.rolledback:
|
if not self.rolledback:
|
||||||
self._fd.close()
|
self._fd.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user