]> granicus.if.org Git - python/commitdiff
Merged revisions 76718 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 8 Dec 2009 19:38:17 +0000 (19:38 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 8 Dec 2009 19:38:17 +0000 (19:38 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76718 | antoine.pitrou | 2009-12-08 20:35:12 +0100 (mar., 08 déc. 2009) | 3 lines

  Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
........

Lib/urllib/parse.py

index a27b975b4f0025c16b77f86f29a96b557f6100a0..16f46d6e48754f2a5d0c7a070dbe4d234fb6d723 100644 (file)
@@ -41,8 +41,9 @@ MAX_CACHE_SIZE = 20
 _parse_cache = {}
 
 def clear_cache():
-    """Clear the parse cache."""
+    """Clear the parse cache and the quoters cache."""
     _parse_cache.clear()
+    _safe_quoters.clear()
 
 
 class ResultMixin(object):