Skip to content

Commit 0dd7fd8

Browse files
authored
Simplify import handling by removing namespace package logic
Remove handling for namespace packages in import.
1 parent 2d571cc commit 0dd7fd8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Doc/reference/import.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,6 @@ of what happens during the loading portion of import::
359359
if spec.loader is None:
360360
# unsupported
361361
raise ImportError
362-
if spec.origin is None and spec.submodule_search_locations is not None:
363-
# namespace package
364-
sys.modules[spec.name] = module
365362

366363
sys.modules[spec.name] = module
367364
try:

0 commit comments

Comments
 (0)