Issue #18018: Raise an ImportError if a relative import is attempted
with no known parent package. Previously SystemError was raised if the parent package didn't exist (e.g., __package__ was set to ''). Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
B
Brett Cannon committed
9fa812668faf0d2d7839845e1a0da19b87bdbc29
Parent: 4b18dd3