summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-15 18:55:21 (GMT)
committerBrett Cannon <brett@python.org>2016-07-15 18:55:21 (GMT)
commitb3e73b30ff5a87c81ef69f3b19a486877ed7f0c2 (patch)
tree94dddbdb417f50a75af2eb858361c9712ddef0da /Lib/importlib
parent33ed881f791c4ee9888eb1df6871129a94f9e6ee (diff)
parenta47a7a5bf88c72d85f322f528381ebfa924072e9 (diff)
downloadcpython-b3e73b30ff5a87c81ef69f3b19a486877ed7f0c2.zip
cpython-b3e73b30ff5a87c81ef69f3b19a486877ed7f0c2.tar.gz
cpython-b3e73b30ff5a87c81ef69f3b19a486877ed7f0c2.tar.bz2
Merge for #27083
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index a4805f3..d332237 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -29,7 +29,8 @@ 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
+ return (b'PYTHONCASEOK' in _os.environ
+ or 'PYTHONCASEOK' in _os.environ)
else:
def _relax_case():
"""True if filenames must be checked case-insensitively."""