[Secure-testing-commits] r5986 - lib/python
fw at alioth.debian.org
fw at alioth.debian.org
Sun Jun 10 12:08:38 UTC 2007
Author: fw
Date: 2007-06-10 12:08:38 +0000 (Sun, 10 Jun 2007)
New Revision: 5986
Modified:
lib/python/security_db.py
Log:
* lib/python/security_db.py (DB.__del__):
Add destructor to close the SQLite database object explicitly.
Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py 2007-06-09 20:30:30 UTC (rev 5985)
+++ lib/python/security_db.py 2007-06-10 12:08:38 UTC (rev 5986)
@@ -134,6 +134,9 @@
return
assert False
+ def __del__(self):
+ self.db.close()
+
def refresh(self):
"""Checks if the database file is still the same and reopens
it if necessary."""
More information about the Secure-testing-commits
mailing list