diff options
author | Brett Cannon <brett@python.org> | 2023-04-06 21:19:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 21:19:54 (GMT) |
commit | 5d08c3ff7d89ca11556f18663a372f6c12435504 (patch) | |
tree | 2e757b6cf009bbe86fc3e73d8ad77b635c739251 /Lib/importlib | |
parent | dca7d174f1dc3f9e67c7451a27bc92dc5a733008 (diff) | |
download | cpython-5d08c3ff7d89ca11556f18663a372f6c12435504.zip cpython-5d08c3ff7d89ca11556f18663a372f6c12435504.tar.gz cpython-5d08c3ff7d89ca11556f18663a372f6c12435504.tar.bz2 |
GH-102700: allow built-in modules to be submodules (GH-103162)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index bebe7e1..22fa246 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -887,8 +887,6 @@ class BuiltinImporter: @classmethod def find_spec(cls, fullname, path=None, target=None): - if path is not None: - return None if _imp.is_builtin(fullname): return spec_from_loader(fullname, cls, origin=cls._ORIGIN) else: |