summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc_data
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-02-10 22:42:04 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-02-10 22:42:04 (GMT)
commit63e4fd7eef8d2da09634e9416dd29fc28d8b8620 (patch)
tree68d971fb24ac4ba9a23a0ee5b8735cf5530a0d8e /Lib/pydoc_data
parent8f6a28702961430a2217be64d9d53e2ea490f1b3 (diff)
downloadcpython-63e4fd7eef8d2da09634e9416dd29fc28d8b8620.zip
cpython-63e4fd7eef8d2da09634e9416dd29fc28d8b8620.tar.gz
cpython-63e4fd7eef8d2da09634e9416dd29fc28d8b8620.tar.bz2
Issue 7835: Shelve's __del__ method calls its close method, and its
close method refers to an identifier in the global module namespace. This means that when __del__ is called during interpreter shutdown (if, for example, the calling program still has a pointer to the shelf), sometimes that global identifier would wind up being None, causing mysterious 'ignored' exceptions. This patch checks for the possible None value first before using the global, thus avoiding the error messages.
Diffstat (limited to 'Lib/pydoc_data')
0 files changed, 0 insertions, 0 deletions