summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/abc.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2021-10-20 21:05:29 (GMT)
committerGitHub <noreply@github.com>2021-10-20 21:05:29 (GMT)
commit876fc7fcec9a79a11546b7588d3683a5ccb4d31c (patch)
tree9195e6474ea19461bbc5d9705f05bd2cf8603209 /Lib/importlib/abc.py
parent6270d3eeaf17b50abc4f8f4d97790d66179638e4 (diff)
downloadcpython-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/abc.py')
-rw-r--r--Lib/importlib/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index 0b4a3f8..1d6843b 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -213,7 +213,7 @@ class InspectLoader(Loader):
exec_module = _bootstrap_external._LoaderBasics.exec_module
load_module = _bootstrap_external._LoaderBasics.load_module
-_register(InspectLoader, machinery.BuiltinImporter, machinery.FrozenImporter)
+_register(InspectLoader, machinery.BuiltinImporter, machinery.FrozenImporter, machinery.NamespaceLoader)
class ExecutionLoader(InspectLoader):