]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121190: Emit a better error message from `importlib.resources.files()` when module...
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 12 Apr 2026 22:15:01 +0000 (18:15 -0400)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2026 22:15:01 +0000 (18:15 -0400)
commit480edc1aae0f54e34d217c72eb2962702c82a666
tree1f41869438c496b5f7af9b99493bc029b3987e56
parentb29afe62f7236f7161c2670dccc24368217a7fb1
gh-121190: Emit a better error message from `importlib.resources.files()` when module spec is `None`" (#148460)

Also merges incidental changes from importlib_resources 7.1.

Co-authored by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
14 files changed:
Lib/importlib/resources/_common.py
Lib/importlib/resources/abc.py
Lib/importlib/resources/simple.py
Lib/test/test_importlib/resources/_path.py
Lib/test/test_importlib/resources/test_compatibilty_files.py
Lib/test/test_importlib/resources/test_files.py
Lib/test/test_importlib/resources/test_functional.py
Lib/test/test_importlib/resources/test_open.py
Lib/test/test_importlib/resources/test_path.py
Lib/test/test_importlib/resources/test_read.py
Lib/test/test_importlib/resources/test_reader.py
Lib/test/test_importlib/resources/test_resource.py
Lib/test/test_importlib/resources/util.py
Misc/NEWS.d/next/Library/2026-04-12-12-31-45.gh-issue-121190.O6-E5_.rst [new file with mode: 0644]