mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
Added safeguard against failure in __del__.
This commit is contained in:
parent
bec74843de
commit
29e77816f5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user