diff options
| author | Brett Cannon <brett@python.org> | 2016-01-22 16:39:02 -0800 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2016-01-22 16:39:02 -0800 |
| commit | 9fa812668faf0d2d7839845e1a0da19b87bdbc29 (patch) | |
| tree | 80c2c811909e691d6ab1fc2fea7ad9ca1619bdd7 /Python/compile.c | |
| parent | 4b18dd339a9919e6f5fa3485c8b871ed19d9e391 (diff) | |
| download | cpython-git-9fa812668faf0d2d7839845e1a0da19b87bdbc29.tar.gz | |
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.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions
