commit | 9ffe85e1e86bc6718f105f2ab9833ef80f691367 | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Sun May 26 16:45:10 2013 -0400 |
committer | Brett Cannon <brett@python.org> | Sun May 26 16:45:10 2013 -0400 |
tree | 236b5acf6fa3186bc46d74b64d8f68fc6c5dd097 | |
parent | 1256f1f438503530d9dcf2790f7ff5b4a08d85f3 [diff] |
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.