Commit f27be4bb authored by Guido van Rossum's avatar Guido van Rossum

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

parent a49779c6
......@@ -6,10 +6,15 @@ The annotate() routine appends slashes to directories."""
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment