summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-05-16 20:42:29 -0400
committerAnthony Sottile <asottile@umich.edu>2022-05-16 20:43:36 -0400
commite72afc551f1fa178cb753e1ec164803655ba5692 (patch)
tree0423c433caf722ca612d6c9f57d57a0155845a94 /pycodestyle.py
parenta7938390f6eb1a3e2880f512223af03b844a7de7 (diff)
downloadpep8-e72afc551f1fa178cb753e1ec164803655ba5692.tar.gz
add python3.11 support (except* and a[*b])
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index e2e4b96..550770b 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -496,6 +496,7 @@ def missing_whitespace_after_keyword(logical_line, tokens):
keyword.iskeyword(tok0.string) and
tok0.string not in SINGLETONS and
tok0.string not in ('async', 'await') and
+ not (tok0.string == 'except' and tok1.string == '*') and
tok1.string not in ':\n'):
line, pos = tok0.end
yield pos, "E275 missing whitespace after keyword"