Commits

Anonymous committed cd6e4bc

Patch by Itamar S.T. (SF#305470): add reset() method.

  • Participants
  • Parent commits a1b3446
  • Branches legacy-trunk

Comments (0)

Files changed (1)

 
 import os
 
-__all__ = ["listdir","opendir","annotate"]
+__all__ = ["listdir", "opendir", "annotate", "reset"]
 
 cache = {}
 
+def reset():
+      """Reset the cache completely."""
+      global cache
+      cache = {}
+
 def listdir(path):
     """List directory contents, using cache."""
     try: