diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/statcache.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/statcache.py')
-rw-r--r-- | Lib/statcache.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/statcache.py b/Lib/statcache.py index 36ecc96..bf13eb5 100644 --- a/Lib/statcache.py +++ b/Lib/statcache.py @@ -44,7 +44,7 @@ def forget(path): def forget_prefix(prefix): n = len(prefix) for path in cache.keys(): - if path[:n] = prefix: + if path[:n] == prefix: del cache[path] @@ -52,16 +52,16 @@ def forget_prefix(prefix): # entries in subdirectories. # def forget_dir(prefix): - if prefix[-1:] = '/' and prefix <> '/': + if prefix[-1:] == '/' and prefix <> '/': prefix = prefix[:-1] forget(prefix) if prefix[-1:] <> '/': prefix = prefix + '/' n = len(prefix) for path in cache.keys(): - if path[:n] = prefix: + if path[:n] == prefix: rest = path[n:] - if rest[-1:] = '/': rest = rest[:-1] + if rest[-1:] == '/': rest = rest[:-1] if '/' not in rest: del cache[path] |