summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-19 13:23:47 (GMT)
committerGitHub <noreply@github.com>2020-02-19 13:23:47 (GMT)
commit4dee92b0ad9f4e3ea2fbbbb5253340801bb92dc7 (patch)
tree2a3aa41655e59e8b986c677385b203174b5c8c1b /Lib
parentab6423fe2de0ed5f8a0dc86a9c7070229326b0f0 (diff)
downloadcpython-4dee92b0ad9f4e3ea2fbbbb5253340801bb92dc7.zip
cpython-4dee92b0ad9f4e3ea2fbbbb5253340801bb92dc7.tar.gz
cpython-4dee92b0ad9f4e3ea2fbbbb5253340801bb92dc7.tar.bz2
Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags passed (#18314)" (GH-18553)
This reverts commit d83b6600b25487e4ebffd7949d0f478de9538875.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/importlib/_bootstrap_external.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 13f0191..2434cf0 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -35,7 +35,7 @@ def _make_relax_case():
def _relax_case():
"""True if filenames must be checked case-insensitively."""
- return not sys.flags.ignore_environment and key in _os.environ
+ return key in _os.environ
else:
def _relax_case():
"""True if filenames must be checked case-insensitively."""