diff options
author | Guido van Rossum <guido@python.org> | 1997-09-08 02:16:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-08 02:16:33 (GMT) |
commit | 10499324cf8e91e1f1775e594ccdd034f9026987 (patch) | |
tree | 7dfee37dbf5cd25712c61d70448294bfe724a95a | |
parent | 62b297b698634969d6ce69f14ef3d268c8904a48 (diff) | |
download | cpython-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).
-rw-r--r-- | Lib/urllib.py | 1 |
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 |