diff options
author | Anthony Sottile <asottile@umich.edu> | 2022-11-27 12:38:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 15:38:53 -0500 |
commit | 98d4fa33ccacf74c62c5a17cc35ce572fd35b223 (patch) | |
tree | f9b6b5fca55e2834bd86505aca117db2be624934 /pyflakes/reporter.py | |
parent | 37f203ed6ec9c54ea4ded0b8480846ac750a1747 (diff) | |
download | pyflakes-98d4fa33ccacf74c62c5a17cc35ce572fd35b223.tar.gz |
pyflakes: python3.8+ (#752)
Diffstat (limited to 'pyflakes/reporter.py')
-rw-r--r-- | pyflakes/reporter.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pyflakes/reporter.py b/pyflakes/reporter.py index 1babbb4..af834d1 100644 --- a/pyflakes/reporter.py +++ b/pyflakes/reporter.py @@ -60,8 +60,6 @@ class Reporter: lineno = max(lineno, 1) if offset is not None: - if sys.version_info < (3, 8) and text is not None: - offset = offset - (len(text) - len(line)) + 1 # some versions of python emit an offset of -1 for certain encoding errors offset = max(offset, 1) self._stderr.write('%s:%d:%d: %s\n' % |