From: Éric Araujo Date: Fri, 15 Jul 2011 15:47:46 +0000 (+0200) Subject: Clear packaging.database caches in place X-Git-Tag: v3.3.0a1~1902 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe95848c161ac814dfba31e90ff5ddb89c99142f;p=thirdparty%2FPython%2Fcpython.git Clear packaging.database caches in place --- diff --git a/Lib/packaging/database.py b/Lib/packaging/database.py index c71d608491a9..c1bd729b6d74 100644 --- a/Lib/packaging/database.py +++ b/Lib/packaging/database.py @@ -61,13 +61,12 @@ def disable_cache(): def clear_cache(): """ Clears the internal cache. """ - global _cache_name, _cache_name_egg, _cache_path, _cache_path_egg, \ - _cache_generated, _cache_generated_egg + global _cache_generated, _cache_generated_egg - _cache_name = {} - _cache_name_egg = {} - _cache_path = {} - _cache_path_egg = {} + _cache_name.clear() + _cache_name_egg.clear() + _cache_path.clear() + _cache_path_egg.clear() _cache_generated = False _cache_generated_egg = False