diff options
author | Guido van Rossum <guido@python.org> | 1995-02-27 13:15:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-27 13:15:29 (GMT) |
commit | cebfa70a794ba3d4aeda681b3164123d934d1c28 (patch) | |
tree | 6a06ba2293900817ba5fd698d655ee8f66041f3f /Lib | |
parent | 780620f2fd1e4b3ae918e175e0848ac1c9b1c36b (diff) | |
download | cpython-cebfa70a794ba3d4aeda681b3164123d934d1c28.zip cpython-cebfa70a794ba3d4aeda681b3164123d934d1c28.tar.gz cpython-cebfa70a794ba3d4aeda681b3164123d934d1c28.tar.bz2 |
fix stupid bug (db should be dict)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/shelve.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py index deb8e22..fcd52ec 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -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() |