From: Guido van Rossum Date: Mon, 8 Sep 1997 02:16:33 +0000 (+0000) Subject: Initialize self.__tempfiles to [] in the constructor (else it remains X-Git-Tag: v1.5a4~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10499324cf8e91e1f1775e594ccdd034f9026987;p=python 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). --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 6922f22936..dfc809c7fa 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