summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-12-08 19:38:17 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-12-08 19:38:17 (GMT)
commit2df5fc7a36bab95e5580cd5d6344ca4050675f61 (patch)
tree6f5a371f53914985bdbc450abc0b5db54ea00f89 /Lib
parent4e7dc5fae919210598d68f740d9d7d4c3af412f6 (diff)
downloadcpython-2df5fc7a36bab95e5580cd5d6344ca4050675f61.zip
cpython-2df5fc7a36bab95e5580cd5d6344ca4050675f61.tar.gz
cpython-2df5fc7a36bab95e5580cd5d6344ca4050675f61.tar.bz2
Merged revisions 76718 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib/parse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index a27b975..16f46d6 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -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):