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:
Quentin Agren 2018-10-26 20:36:30 +02:00 committed by Miss Islington (bot)
parent 4e3a53bcee
commit 9e14e49f13
3 changed files with 1349 additions and 1349 deletions

View file

@ -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