From: Antoine Pitrou Date: Tue, 8 Dec 2009 19:35:12 +0000 (+0000) Subject: Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. X-Git-Tag: v2.7a2~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca173e2a0719c174af0195873b67e59abd4230cf;p=python Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. --- 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: