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
This commit is contained in:
parent
4e3a53bcee
commit
9e14e49f13
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
`importlib` no longer logs `wrote <bytecode path>` redundantly after
|
||||
`(created|could not create) <bytecode path>` is already logged.
|
||||
Patch by Quentin Agren.
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue