cpython: 7caab48f171e (original) (raw)

--- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -409,7 +409,7 @@ ABC hierarchy:: When writing to the path fails because the path is read-only (:attr:errno.EACCES), do not propagate the exception.

Create a code object from Python source.

--- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -931,7 +931,7 @@ class SourceLoader(_LoaderBasics): raise ImportError("Failed to decode source file", name=fullname) from exc

The 'data' argument can be any object type that compile() supports. @@ -984,7 +984,7 @@ class SourceLoader(_LoaderBasics): raise ImportError(msg.format(bytecode_path), name=fullname, path=bytecode_path) source_bytes = self.get_data(source_path)

--- a/Lib/test/test_importlib/source/test_abc_loader.py +++ b/Lib/test/test_importlib/source/test_abc_loader.py @@ -148,9 +148,9 @@ class SourceOnlyLoaderTests(SourceLoader code_object = self.loader.get_code(self.name) self.verify_code(code_object)

def test_load_module(self):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -190,7 +190,7 @@ Library

--- a/Python/importlib.h +++ b/Python/importlib.h @@ -2200,11 +2200,11 @@ unsigned char _Py_M__importlib[] = { 97,116,97,117,4,0,0,0,112,97,116,104,40,0,0,0, 0,40,0,0,0,0,117,29,0,0,0,60,102,114,111,122, 101,110,32,105,109,112,111,114,116,108,105,98,46,95,98,111,