From 0ea8f50356cccc459df639ad494d85e91320bfdf Mon Sep 17 00:00:00 2001 From: "antoine.pitrou" Date: Tue, 8 Dec 2009 19:35:12 +0000 Subject: [PATCH] Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. git-svn-id: http://svn.python.org/projects/python/trunk@76718 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/urllib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/urllib.py b/Lib/urllib.py index 1c31d48f9c..be77e1de64 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -95,6 +95,8 @@ def urlretrieve(url, filename=None, reporthook=None, data=None): def urlcleanup(): if _urlopener: _urlopener.cleanup() + _safemaps.clear() + ftpcache.clear() # check for SSL try: -- 2.11.4.GIT