From e72afc551f1fa178cb753e1ec164803655ba5692 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 16 May 2022 20:42:29 -0400 Subject: add python3.11 support (except* and a[*b]) --- pycodestyle.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pycodestyle.py') 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" -- cgit v1.2.1