diff options
| author | Guido van Rossum <guido@python.org> | 1996-11-27 19:39:58 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1996-11-27 19:39:58 +0000 |
| commit | 29e77816f5420824545cecdfc4541c91c5225ba7 (patch) | |
| tree | 9bbaa91eab3a07f7fd81c2f303b9eb432749f837 | |
| parent | bec74843de052a3d0d51e44173e026ef9800914f (diff) | |
| download | cpython-git-29e77816f5420824545cecdfc4541c91c5225ba7.tar.gz | |
Added safeguard against failure in __del__.
| -rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 25830892ff..4f455f8c33 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -70,6 +70,8 @@ def urlcleanup(): ftpcache = {} class URLopener: + tempcache = None # So close() in __del__() won't fail + # Constructor def __init__(self, proxies=None): if proxies is None: |
