diff options
| author | Barry Warsaw <barry@python.org> | 2021-10-20 21:05:29 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-20 21:05:29 (GMT) |
| commit | 876fc7fcec9a79a11546b7588d3683a5ccb4d31c (patch) | |
| tree | 9195e6474ea19461bbc5d9705f05bd2cf8603209 /Lib/importlib/machinery.py | |
| parent | 6270d3eeaf17b50abc4f8f4d97790d66179638e4 (diff) | |
| download | cpython-876fc7fcec9a79a11546b7588d3683a5ccb4d31c.zip cpython-876fc7fcec9a79a11546b7588d3683a5ccb4d31c.tar.gz cpython-876fc7fcec9a79a11546b7588d3683a5ccb4d31c.tar.bz2 | |
bpo-35673: Add a public alias for namespace package __loader__ attribute (#29049)
Rename namespace package __loader__ class to be public.
Make the old name, i.e. _NamespaceLoader, an alias for the public name, for backward compatibility.
Diffstat (limited to 'Lib/importlib/machinery.py')
| -rw-r--r-- | Lib/importlib/machinery.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/importlib/machinery.py b/Lib/importlib/machinery.py index 9a7757f..d9a19a1 100644 --- a/Lib/importlib/machinery.py +++ b/Lib/importlib/machinery.py @@ -12,6 +12,7 @@ from ._bootstrap_external import FileFinder from ._bootstrap_external import SourceFileLoader from ._bootstrap_external import SourcelessFileLoader from ._bootstrap_external import ExtensionFileLoader +from ._bootstrap_external import NamespaceLoader def all_suffixes(): |
