From: Guido van Rossum Date: Mon, 27 Feb 1995 13:15:29 +0000 (+0000) Subject: fix stupid bug (db should be dict) X-Git-Tag: v1.2b4~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cebfa70a794ba3d4aeda681b3164123d934d1c28;p=thirdparty%2FPython%2Fcpython.git fix stupid bug (db should be dict) --- diff --git a/Lib/shelve.py b/Lib/shelve.py index deb8e2264104..fcd52ec16869 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()