commit | 29e77816f5420824545cecdfc4541c91c5225ba7 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Nov 27 19:39:58 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Nov 27 19:39:58 1996 +0000 |
tree | 9bbaa91eab3a07f7fd81c2f303b9eb432749f837 | |
parent | bec74843de052a3d0d51e44173e026ef9800914f [diff] |
Added safeguard against failure in __del__.
diff --git a/Lib/urllib.py b/Lib/urllib.py index 2583089..4f455f8 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -70,6 +70,8 @@ ftpcache = {} class URLopener: + tempcache = None # So close() in __del__() won't fail + # Constructor def __init__(self, proxies=None): if proxies is None: