Commit 9e14e49f authored by Quentin Agren's avatar Quentin Agren Committed by Miss Islington (bot)

bpo-35024: Remove redundant and possibly incorrect verbose message after writing '.pyc' (GH-9998)



Since `SourceFileLoader.set_data()` catches exceptions raised by `_write_atomic()` and logs an informative message consequently, always logging successful outcome in 'SourceLoader.get_code()' seems redundant.  



https://bugs.python.org/issue35024
parent 4e3a53bc
......@@ -920,7 +920,6 @@ class SourceLoader(_LoaderBasics):
len(source_bytes))
try:
self._cache_bytecode(source_path, bytecode_path, data)
_bootstrap._verbose_message('wrote {!r}', bytecode_path)
except NotImplementedError:
pass
return code_object
......
`importlib` no longer logs `wrote <bytecode path>` redundantly after
`(created|could not create) <bytecode path>` is already logged.
Patch by Quentin Agren.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment