summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2007-06-10 12:08:38 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2007-06-10 12:08:38 +0000
commit7c3ecad2f74c518a03341fedb8d7beea6ecbe9e2 (patch)
tree2bfd6cbe7465361bfcff562566aa3b0347c83824 /lib
parentb2712f5a5e1bae4283236a8d1b58fd395ad3731c (diff)
* lib/python/security_db.py (DB.__del__):
Add destructor to close the SQLite database object explicitly. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@5986 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index c0b33c05fa..c7accbd2a1 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -134,6 +134,9 @@ class DB:
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."""

© 2014-2024 Faster IT GmbH | imprint | privacy policy