diff options
author | Steven Karas <steven.karas@gmail.com> | 2022-07-19 05:51:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 22:51:04 -0400 |
commit | d875b02835fb9b1480a95c5245040eb31a384357 (patch) | |
tree | 22ef95ec26af351bf867c3912a325309b337d6ac /pyflakes/test/test_doctests.py | |
parent | 44ef321b0e608c61182ecf5d88f9edeececa5403 (diff) | |
download | pyflakes-d875b02835fb9b1480a95c5245040eb31a384357.tar.gz |
fix syntax error reporting from stdin (#357) (#716)
In b73a3d12, there was an assumption that text is None only if there was an
encoding error with the file. However this was the case for all pythons before
3.9 when reading code from stdin.
This takes care to correctly report as much context as possible, so errors
aren't silently dropped with the unhelpful "problem decoding source" message.
Diffstat (limited to 'pyflakes/test/test_doctests.py')
0 files changed, 0 insertions, 0 deletions