Skip to content

Commit

Permalink
Docstring may also be prefixed with f, U, R, and F.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Jul 28, 2019
1 parent 9726e10 commit e15665b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycodestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ 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('(u|r|ur|ru' +
('|fr|rf' if sys.version_info >= (3, 6) else '') +
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*([=!]=)'
Expand Down

0 comments on commit e15665b

Please sign in to comment.