]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-104310: Rename the New Function in importlib.util (gh-105255) (gh-105518)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Jun 2023 19:00:04 +0000 (12:00 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 19:00:04 +0000 (19:00 +0000)
commit8698fa83f6c226d35af0367e40dd4387fcccbe40
treef132abf43e01fde9ca91ad87a3c42dda860d109f
parent1f90b2f57a21b48858a2c60c2c1e59b8ff9f63b7
[3.12] gh-104310: Rename the New Function in importlib.util (gh-105255) (gh-105518)

The original name wasn't as clear as it could have been. This change includes the following:

* rename the function
* change the default value for "disable_check" to False
* add clues to the docstring that folks should probably not use the function

---------

(cherry picked from commit 34c63b86d3c33a85acf55a0c5c118304754e145d)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/importlib/util.py
Lib/test/test_importlib/test_util.py
Misc/NEWS.d/next/Library/2023-06-02-14-23-41.gh-issue-104310.UamCOB.rst [new file with mode: 0644]