GH-102700: allow built-in modules to be submodules (GH-103162)

This commit is contained in:
Brett Cannon 2023-04-06 14:19:54 -07:00 committed by GitHub
parent dca7d174f1
commit 5d08c3ff7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 19 deletions

View file

@ -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: