]> granicus.if.org Git - python/commitdiff
Initialize self.__tempfiles to [] in the constructor (else it remains
authorGuido van Rossum <guido@python.org>
Mon, 8 Sep 1997 02:16:33 +0000 (02:16 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 8 Sep 1997 02:16:33 +0000 (02:16 +0000)
a shared class variable -- but each instance will attempt to clean it
up entirely ob cleanup).

Lib/urllib.py

index 6922f22936108fa4c8ccaddae3aaa758b55dadea..dfc809c7fa6ff0e7fd03351cea9935a7ae3c1be6 100644 (file)
@@ -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