summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-06-14 10:48:46 -0400
committerGitHub <noreply@github.com>2022-06-14 10:48:46 -0400
commit59f2e31d0f032ffccb0ad64761f58758a844796d (patch)
treea1012c062cc7cd54a534d6043d2dd8803669fdea /pycodestyle.py
parent07be27e1b2bf9c29eed710a2f808d3db5a670139 (diff)
parente72afc551f1fa178cb753e1ec164803655ba5692 (diff)
downloadpep8-59f2e31d0f032ffccb0ad64761f58758a844796d.tar.gz
Merge pull request #1070 from PyCQA/py311
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 adf743c..f866dd4 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'):
yield tok0.end, "E275 missing whitespace after keyword"