Commit 29e77816 authored by Guido van Rossum's avatar Guido van Rossum

Added safeguard against failure in __del__.

parent bec74843
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment