Initialize self.__tempfiles to [] in the constructor (else it remains
a shared class variable -- but each instance will attempt to clean it up entirely ob cleanup).
This commit is contained in:
parent
62b297b698
commit
10499324cf
@ -91,6 +91,7 @@ class URLopener:
|
|||||||
self.proxies = proxies
|
self.proxies = proxies
|
||||||
server_version = "Python-urllib/%s" % __version__
|
server_version = "Python-urllib/%s" % __version__
|
||||||
self.addheaders = [('User-agent', server_version)]
|
self.addheaders = [('User-agent', server_version)]
|
||||||
|
self.__tempfiles = []
|
||||||
self.tempcache = None
|
self.tempcache = None
|
||||||
# Undocumented feature: if you assign {} to tempcache,
|
# Undocumented feature: if you assign {} to tempcache,
|
||||||
# it is used to cache files retrieved with
|
# it is used to cache files retrieved with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user