commit | 9fa812668faf0d2d7839845e1a0da19b87bdbc29 | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Jan 22 16:39:02 2016 -0800 |
committer | Brett Cannon <brett@python.org> | Fri Jan 22 16:39:02 2016 -0800 |
tree | 80c2c811909e691d6ab1fc2fea7ad9ca1619bdd7 | |
parent | 4b18dd339a9919e6f5fa3485c8b871ed19d9e391 [diff] |
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.