Commit 10499324 authored by Guido van Rossum's avatar Guido van Rossum

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).
parent 62b297b6
......@@ -91,6 +91,7 @@ class URLopener:
self.proxies = proxies
server_version = "Python-urllib/%s" % __version__
self.addheaders = [('User-agent', server_version)]
self.__tempfiles = []
self.tempcache = None
# Undocumented feature: if you assign {} to tempcache,
# it is used to cache files retrieved with
......
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