Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python): handle source decoding errors
As described in nedbat#1160, occasionally some shared object paths make their way into the coverage report. When they get to `get_python_source` the call to `source_encoding` fails because the content of these files is binary. The change allows `get_python_source` to handle these cases gracefully while still reporting the issue. Fixes nedbat#1160.
- Loading branch information