Skip to content

Commit 4dee92b

Browse files
authored
Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags passed (#18314)" (GH-18553)
This reverts commit d83b660.
1 parent ab6423f commit 4dee92b

File tree

5 files changed

+2647
-2658
lines changed

5 files changed

+2647
-2658
lines changed

Doc/library/functions.rst

-3
Original file line numberDiff line numberDiff line change
@@ -1829,9 +1829,6 @@ are always available. They are listed here in alphabetical order.
18291829
Negative values for *level* are no longer supported (which also changes
18301830
the default value to 0).
18311831

1832-
.. versionchanged:: 3.9
1833-
When the command line options :option:`-E` or :option:`-I` are being used,
1834-
the environment variable :envvar:`PYTHONCASEOK` is now ignored.
18351832

18361833
.. rubric:: Footnotes
18371834

Doc/whatsnew/3.9.rst

-3
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@ Changes in the Python API
584584
since the *buffering* parameter has been removed.
585585
(Contributed by Victor Stinner in :issue:`39357`.)
586586

587-
* The :mod:`importlib` module now ignores the :envvar:`PYTHONCASEOK`
588-
environment variable when the :option:`-E` or :option:`-I` command line
589-
options are being used.
590587

591588
CPython bytecode changes
592589
------------------------

Lib/importlib/_bootstrap_external.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _make_relax_case():
3535

3636
def _relax_case():
3737
"""True if filenames must be checked case-insensitively."""
38-
return not sys.flags.ignore_environment and key in _os.environ
38+
return key in _os.environ
3939
else:
4040
def _relax_case():
4141
"""True if filenames must be checked case-insensitively."""

Misc/NEWS.d/next/Library/2020-02-11-13-01-38.bpo-38691.oND8Sk.rst

-2
This file was deleted.

0 commit comments

Comments
 (0)