mirror of
https://github.com/python/cpython.git
synced 2026-01-19 13:50:27 +00:00
instead of failing with SystemError.
Relative import from non-package now fails with ImportError rather than
SystemError.
(cherry picked from commit 8a9cd20edc)
3 lines
71 B
Python
3 lines
71 B
Python
import sys
|
|
sys.modules.pop(__package__, None)
|
|
from . import submodule2
|