mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00

instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError.
3 lines
71 B
Python
3 lines
71 B
Python
import sys
|
|
sys.modules.pop(__package__, None)
|
|
from . import submodule2
|