mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #16826: Don't check for PYTHONCASEOK when using -E.
This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable.
This commit is contained in:
commit
9ab358ad7c
5 changed files with 3219 additions and 3142 deletions
|
@ -29,7 +29,10 @@ def _make_relax_case():
|
|||
if sys.platform.startswith(_CASE_INSENSITIVE_PLATFORMS):
|
||||
def _relax_case():
|
||||
"""True if filenames must be checked case-insensitively."""
|
||||
return b'PYTHONCASEOK' in _os.environ
|
||||
if sys.flags.ignore_environment:
|
||||
return False
|
||||
else:
|
||||
return b'PYTHONCASEOK' 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