diff options
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2022-06-14 09:33:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 09:33:22 -0500 |
commit | 07be27e1b2bf9c29eed710a2f808d3db5a670139 (patch) | |
tree | 882e7e70748cf05d6b1cff13e27a7e1e32517f28 /pycodestyle.py | |
parent | eede9e31821a207952ef93620faecbf61427555a (diff) | |
parent | c1c9a4be729e63a2b72495f8b8d43f3a7580c4a9 (diff) | |
download | pep8-07be27e1b2bf9c29eed710a2f808d3db5a670139.tar.gz |
Merge pull request #1073 from asottile/fix-E275-regression
fix IndexError regression with E275
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index e2e4b96..adf743c 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -497,8 +497,7 @@ def missing_whitespace_after_keyword(logical_line, tokens): tok0.string not in SINGLETONS and tok0.string not in ('async', 'await') and tok1.string not in ':\n'): - line, pos = tok0.end - yield pos, "E275 missing whitespace after keyword" + yield tok0.end, "E275 missing whitespace after keyword" @register_check |