diff options
author | Anthony Sottile <asottile@umich.edu> | 2022-05-30 14:25:21 -0400 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2022-05-30 14:25:21 -0400 |
commit | c1c9a4be729e63a2b72495f8b8d43f3a7580c4a9 (patch) | |
tree | 07fbfa0f11e786254fd1c7ace7acfba3331628c7 /pycodestyle.py | |
parent | a7938390f6eb1a3e2880f512223af03b844a7de7 (diff) | |
download | pep8-c1c9a4be729e63a2b72495f8b8d43f3a7580c4a9.tar.gz |
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 |