diff options
author | Quentin Agren <quentin.agren@sciencespo.fr> | 2018-10-26 18:36:30 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-10-26 18:36:30 (GMT) |
commit | 9e14e49f13ef1a726f31efe6689285463332db6e (patch) | |
tree | 01a3a37e6db2bd0da1b8af9850b7b44d9883cbbb /Lib/importlib | |
parent | 4e3a53bceefe4803c08a025523d8658862cb31c0 (diff) | |
download | cpython-9e14e49f13ef1a726f31efe6689285463332db6e.zip cpython-9e14e49f13ef1a726f31efe6689285463332db6e.tar.gz cpython-9e14e49f13ef1a726f31efe6689285463332db6e.tar.bz2 |
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
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 0b742ba..71fdd0c 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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 |