Kaydet (Commit) dc3e3291 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix SF #433233: syntax error.

üst 87ce6acc
...@@ -49,8 +49,8 @@ def forget_dir(prefix): ...@@ -49,8 +49,8 @@ def forget_dir(prefix):
prefix = os.path.dirname(os.path.join(prefix, "xxx")) prefix = os.path.dirname(os.path.join(prefix, "xxx"))
forget(prefix) forget(prefix)
for path in cache.keys(): for path in cache.keys():
if path.startswith(prefix) and os.path.dirname(path) == prefix: if path.startswith(prefix) and os.path.dirname(path) == prefix:
forget(path) forget(path)
def forget_except_prefix(prefix): def forget_except_prefix(prefix):
"""Remove all pathnames except with a given prefix. """Remove all pathnames except with a given prefix.
......
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