We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9726e10 commit 4eb9610Copy full SHA for 4eb9610
pycodestyle.py
@@ -133,7 +133,7 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation.
133
RAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,')
134
RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,.*,\s*\w+\s*$')
135
ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b')
136
-DOCSTRING_REGEX = re.compile(r'u?r?["\']')
+DOCSTRING_REGEX = re.compile(r'(u|r|ur|ru)?["\']', re.IGNORECASE)
137
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[({] | [\]}),;:]')
138
WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)')
139
COMPARE_SINGLETON_REGEX = re.compile(r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)'
0 commit comments