From 39895aae46a2a4b665fc85a3747f2fafd27441fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susannah=20Klane=C4=8Dek?= Date: Fri, 1 May 2020 12:40:11 -0400 Subject: [PATCH] Handle --- pycodestyle.py | 4 ++-- testsuite/E71.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pycodestyle.py b/pycodestyle.py index b1fb8a74..d9682b8f 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -140,8 +140,8 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation. WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)') COMPARE_SINGLETON_REGEX = re.compile(r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)' r'\s*(?(1)|(None|False|True))\b') -COMPARE_NEGATIVE_REGEX = re.compile(r'\b(not)\s+[^][)(}{ ]+\s+(in|is)' - r'\s+(?!not\s)') +COMPARE_NEGATIVE_REGEX = re.compile(r'\b(?