]> granicus.if.org Git - python/commit
Move importlib.abc.SourceLoader to _bootstrap.
authorBrett Cannon <bcannon@gmail.com>
Mon, 28 Jun 2010 04:57:24 +0000 (04:57 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 28 Jun 2010 04:57:24 +0000 (04:57 +0000)
commit0cf9e6a6214d4418286a30e305fefad644b29c52
tree9d07df67286fe14593baeae5ce2d0f1bd3b555db
parent9396483ba40888b735b3d00dc5f1d1379f939914
Move importlib.abc.SourceLoader to _bootstrap.

Required updating code relying on other modules to switch to _bootstrap's
unique module requirements. This led to the realization that
get_code was being too liberal in its exception catching when calling set_data
by blindly grabbing IOError. Shifted the responsibility of safely ignoring
writes to a read-only path to set_data.

Importlib is still not relying on SourceLoader yet; requires creating a
SourcelessLoader and updating the source finder.
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/abc.py
Lib/importlib/test/source/test_abc_loader.py