summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-08 02:16:33 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-08 02:16:33 (GMT)
commit10499324cf8e91e1f1775e594ccdd034f9026987 (patch)
tree7dfee37dbf5cd25712c61d70448294bfe724a95a /Lib/urllib.py
parent62b297b698634969d6ce69f14ef3d268c8904a48 (diff)
downloadcpython-10499324cf8e91e1f1775e594ccdd034f9026987.zip
cpython-10499324cf8e91e1f1775e594ccdd034f9026987.tar.gz
cpython-10499324cf8e91e1f1775e594ccdd034f9026987.tar.bz2
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).
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 6922f22..dfc809c 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -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