From c3f51b72be671855f0a822f51568bad10fd2d4d3 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sat, 27 Jul 2019 23:39:53 -0700 Subject: [PATCH] Docstring may also be prefixed with U and R. --- pycodestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycodestyle.py b/pycodestyle.py index 4ade0871..00ec347f 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -133,7 +133,7 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation. RAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,') RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,.*,\s*\w+\s*$') ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b') -DOCSTRING_REGEX = re.compile(r'u?r?["\']') +DOCSTRING_REGEX = re.compile(r'u?r?["\']', re.IGNORECASE) EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[({] | [\]}),;:]') WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)') COMPARE_SINGLETON_REGEX = re.compile(r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)'