summaryrefslogtreecommitdiff
path: root/engine/SCons/dblite.py
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@debian.org>2011-09-10 10:58:07 +0200
committerLuca Falavigna <dktrkranz@debian.org>2011-09-10 10:58:07 +0200
commit9dc7be6c34e2bda6d0d96a450bb8eee03b277ba3 (patch)
tree29a18cc5c1c1ecfc1d1d49e768ef964b84ed14bf /engine/SCons/dblite.py
parent8344b122eb4ee8818cde6ef2bb07726a672a2d23 (diff)
Imported Upstream version 2.1.0upstream/2.1.0
Diffstat (limited to 'engine/SCons/dblite.py')
-rw-r--r--engine/SCons/dblite.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/SCons/dblite.py b/engine/SCons/dblite.py
index ea24e6a..f4ba90a 100644
--- a/engine/SCons/dblite.py
+++ b/engine/SCons/dblite.py
@@ -104,10 +104,13 @@ class dblite(object):
if (ignore_corrupt_dbfiles == 1):
corruption_warning(self._file_name)
- def __del__(self):
+ def close(self):
if (self._needs_sync):
self.sync()
+ def __del__(self):
+ self.close()
+
def sync(self):
self._check_writable()
f = self._open(self._tmp_name, "wb", self._mode)