Skip to content

Commit

Permalink
Docstring may also be prefixed with U and R.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Jul 28, 2019
1 parent 9726e10 commit 4eb9610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycodestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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|ur|ru)?["\']', 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*([=!]=)'
Expand Down

0 comments on commit 4eb9610

Please sign in to comment.