]> granicus.if.org Git - python/commit
Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.
authorBrett Cannon <brett@python.org>
Sun, 26 May 2013 20:45:10 +0000 (16:45 -0400)
committerBrett Cannon <brett@python.org>
Sun, 26 May 2013 20:45:10 +0000 (16:45 -0400)
commit9ffe85e1e86bc6718f105f2ab9833ef80f691367
tree236b5acf6fa3186bc46d74b64d8f68fc6c5dd097
parent1256f1f438503530d9dcf2790f7ff5b4a08d85f3
Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.

While the previous location was fine, it makes more sense to have the
method higher up in the inheritance chain, especially at a point where
get_source() is defined which is the earliest source_to_code() could
programmatically be used in the inheritance tree in importlib.abc.
Doc/library/importlib.rst
Lib/importlib/abc.py
Lib/test/test_importlib/test_abc.py
Misc/NEWS