fix stupid bug (db should be dict)

This commit is contained in:
Guido van Rossum 1995-02-27 13:15:29 +00:00
parent 780620f2fd
commit cebfa70a79
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ class Shelf:
del self.dict[key]
def close(self):
if hasattr(self.db, 'close'):
self.db.close()
self.db = None
if hasattr(self.dict, 'close'):
self.dict.close()
self.dict = None
def __del__(self):
self.close()