[Python-checkins] r76718 - python/trunk/Lib/urllib.py
antoine.pitrou
python-checkins at python.org
Tue Dec 8 20:35:13 CET 2009
Author: antoine.pitrou
Date: Tue Dec 8 20:35:12 2009
New Revision: 76718
Log:
Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
Modified:
python/trunk/Lib/urllib.py
Modified: python/trunk/Lib/urllib.py
==============================================================================
--- python/trunk/Lib/urllib.py (original)
+++ python/trunk/Lib/urllib.py Tue Dec 8 20:35:12 2009
@@ -95,6 +95,8 @@
def urlcleanup():
if _urlopener:
_urlopener.cleanup()
+ _safemaps.clear()
+ ftpcache.clear()
# check for SSL
try:
More information about the Python-checkins
mailing list