diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/statcache.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/statcache.py b/Lib/statcache.py index 04381f3..770aef0 100644 --- a/Lib/statcache.py +++ b/Lib/statcache.py @@ -22,14 +22,10 @@ def stat(path): # Reset the cache completely. -# Hack: to reset a global variable, we import this module. # def reset(): - import statcache - # Check that we really imported the same module - if cache is not statcache.cache: - raise 'sorry, statcache identity crisis' - statcache.cache = {} + global cache + cache = {} # Remove a given item from the cache, if it exists. |