mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
GH-102700: allow built-in modules to be submodules (GH-103162)
This commit is contained in:
parent
dca7d174f1
commit
5d08c3ff7d
3 changed files with 1 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue