Added safeguard against failure in __del__.

This commit is contained in:
Guido van Rossum 1996-11-27 19:39:58 +00:00
parent bec74843de
commit 29e77816f5

View File

@ -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: