mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627)
The importlib module now ignores the PYTHONCASEOK environment variable when the -E or -I command line options are being used.
This commit is contained in:
parent
e53a3932cb
commit
fc72ab6913
7 changed files with 2656 additions and 2633 deletions
|
@ -34,8 +34,8 @@ def _make_relax_case():
|
|||
key = b'PYTHONCASEOK'
|
||||
|
||||
def _relax_case():
|
||||
"""True if filenames must be checked case-insensitively."""
|
||||
return key in _os.environ
|
||||
"""True if filenames must be checked case-insensitively and ignore environment flags are not set."""
|
||||
return not sys.flags.ignore_environment and key in _os.environ
|
||||
else:
|
||||
def _relax_case():
|
||||
"""True if filenames must be checked case-insensitively."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue