Kaydet (Commit) cebfa70a authored tarafından Guido van Rossum's avatar Guido van Rossum

fix stupid bug (db should be dict)

üst 780620f2
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment