Browse Source

Revert "bpo-38691 Added a switch to ignore PYTHONCASEOK when -E or -I flags passed (#18314)" (GH-18553)

This reverts commit d83b6600b2.
pull/18563/head
Victor Stinner 6 years ago
committed by GitHub
parent
commit
4dee92b0ad
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Doc/library/functions.rst
  2. 3
      Doc/whatsnew/3.9.rst
  3. 2
      Lib/importlib/_bootstrap_external.py
  4. 2
      Misc/NEWS.d/next/Library/2020-02-11-13-01-38.bpo-38691.oND8Sk.rst
  5. 5295
      Python/importlib_external.h

3
Doc/library/functions.rst

@ -1829,9 +1829,6 @@ are always available. They are listed here in alphabetical order.
Negative values for *level* are no longer supported (which also changes
the default value to 0).
.. versionchanged:: 3.9
When the command line options :option:`-E` or :option:`-I` are being used,
the environment variable :envvar:`PYTHONCASEOK` is now ignored.
.. rubric:: Footnotes

3
Doc/whatsnew/3.9.rst

@ -584,9 +584,6 @@ Changes in the Python API
since the *buffering* parameter has been removed.
(Contributed by Victor Stinner in :issue:`39357`.)
* The :mod:`importlib` module now ignores the :envvar:`PYTHONCASEOK`
environment variable when the :option:`-E` or :option:`-I` command line
options are being used.
CPython bytecode changes
------------------------

2
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."""

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

@ -1,2 +0,0 @@
The :mod:`importlib` module now ignores the :envvar:`PYTHONCASEOK`
environment variable when :option:`-E` or :option:`-I` command line option is used.

5295
Python/importlib_external.h
File diff suppressed because it is too large
View File

Loading…
Cancel
Save