mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
don't bother keeping a set we'll never use
This commit is contained in:
parent
23bba4ca39
commit
2a481e58ff
1 changed files with 2 additions and 1 deletions
|
@ -842,6 +842,7 @@ class _FileFinder:
|
||||||
# We store two cached versions, to handle runtime changes of the
|
# We store two cached versions, to handle runtime changes of the
|
||||||
# PYTHONCASEOK environment variable.
|
# PYTHONCASEOK environment variable.
|
||||||
self._path_cache = set(contents)
|
self._path_cache = set(contents)
|
||||||
|
if sys.platform.startswith(CASE_INSENSITIVE_PLATFORMS):
|
||||||
self._relaxed_path_cache = set(fn.lower() for fn in contents)
|
self._relaxed_path_cache = set(fn.lower() for fn in contents)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue