Implement seed, tell, and flush to AtomicFile.

This commit is contained in:
Valentin Lorentz 2012-08-04 21:24:17 +02:00
parent 36812798fb
commit ced2e7b72d

View File

@ -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()