From 10499324cf8e91e1f1775e594ccdd034f9026987 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 8 Sep 1997 02:16:33 +0000 Subject: 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). --- Lib/urllib.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12