Damien George 2f7fad66a2 py/builtinimport: Remove unreachable code for relative imports.
The while-loop that calls chop_component will guarantee that level==-1 at
the end of the loop.  Hence the code following it is unnecessary.

The check for p==this_name will catch imports that are beyond the
top-level, and also covers the case of new_mod_q==MP_QSTR_ (equivalent to
new_mod_l==0) so that check is removed.

There is also a new check at the start for level>=0 to guard against
__import__ being called with bad level values.
2017-06-28 12:21:29 +10:00
..
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-03-08 22:36:02 +11:00
2015-11-13 12:49:18 +00:00
2017-05-29 11:36:05 +03:00
2017-01-27 17:19:06 +11:00
2017-05-29 11:36:05 +03:00