summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-16 16:54:56 +1100
committerDamien George <damien.p.george@gmail.com>2017-06-28 12:21:29 +1000
commit2f7fad66a2b3d51772854575b080518c92eefde8 (patch)
tree4b625bc7c7b08ea73aa65ff7786c5b21ba265b92 /docs/esp8266
parentebb93962741d68e4530cb89d207641c1d663f61f (diff)
downloadmicropython-2f7fad66a2b3d51772854575b080518c92eefde8.tar.gz
micropython-2f7fad66a2b3d51772854575b080518c92eefde8.zip
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.
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions