cpython/Lib/importlib
Miss Islington (bot) 01189bdaf4
[3.13] gh-123011: Fix warn_explicit() with the globals of the __main__ module (GH-155318) (GH-155991)
The __main__ module executed as a script or a command has __spec__ set to
None, so warn_explicit(module_globals=globals()) emitted a spurious
DeprecationWarning.  It also raised ImportError when the loader was unable
to provide the source of the module: when the module was executed with -m
(the loader can only handle its own module name) or as a command (the
built-in importer has no source).
(cherry picked from commit f2eaf174b2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-08-18 07:50:34 +00:00
..
metadata
resources [3.13] gh-123085: Fix issue in inferred caller when resource package has no source (GH-123102) (#124024) 2025-08-15 14:21:16 +00:00
__init__.py [3.13] gh-125519: Improve traceback if importlib.reload() is called with a non-module object (GH-125520) (#125768) 2024-10-21 08:28:32 +00:00
_abc.py gh-102515: Remove unused imports in the Lib/ directory (#102516) 2023-03-08 11:45:38 +00:00
_bootstrap.py [3.13] gh-130094: Fix race conditions in importlib (gh-130101) (gh-155915) 2026-08-17 11:53:32 +09:00
_bootstrap_external.py [3.13] gh-123011: Fix warn_explicit() with the globals of the __main__ module (GH-155318) (GH-155991) 2026-08-18 07:50:34 +00:00
abc.py [3.13] gh-121279: Re-add prematurely removed import warnings to importlib.abc (#121281) 2024-07-03 11:06:20 +02:00
machinery.py gh-114099 - Add iOS framework loading machinery. (GH-116454) 2024-03-19 08:36:19 -04:00
readers.py
simple.py bpo-46118: Move importlib.resources to its own package. (#30176) 2021-12-30 21:00:48 -05:00
util.py