diff options
author | Brett Cannon <brett@python.org> | 2013-06-16 22:37:53 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-16 22:37:53 (GMT) |
commit | f24fecd4ac9050799d02a8354b7acfa12b65b1d3 (patch) | |
tree | 332e7e70c73bfbe61754e95a173aadbbe6e004a4 /Misc | |
parent | f4375ef4d458bf24610ffef591f8197a3dbf0b35 (diff) | |
download | cpython-f24fecd4ac9050799d02a8354b7acfa12b65b1d3.zip cpython-f24fecd4ac9050799d02a8354b7acfa12b65b1d3.tar.gz cpython-f24fecd4ac9050799d02a8354b7acfa12b65b1d3.tar.bz2 |
Issue #18076: Introduce imoportlib.util.decode_source().
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -123,6 +123,8 @@ Core and Builtins Library ------- +- Issue #18076: Introduce importlib.util.decode_source(). + - importlib.abc.SourceLoader.get_source() no longer changes SyntaxError or UnicodeDecodeError into ImportError. |