mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
@ -16,7 +16,7 @@ __all__ = ["stat","reset","forget","forget_prefix","forget_dir",
|
|||
|
||||
# The cache. Keys are pathnames, values are os.stat outcomes.
|
||||
# Remember that multiple threads may be calling this! So, e.g., that
|
||||
# cache.has_key(path) returns 1 doesn't mean the cache will still contain
|
||||
# path in cache returns 1 doesn't mean the cache will still contain
|
||||
# path on the next line. Code defensively.
|
||||
|
||||
cache = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue