diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2013-02-09 16:58:51 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2013-02-09 16:58:51 +0100 |
commit | 2dc5597feb662a916d58370602c345d013dc3482 (patch) | |
tree | cce46a4bd3e94dae3fcc0dec6bc282981764e8c7 | |
parent | 4e5f9657e9674075db74b66be6c3af0df116b6cf (diff) | |
download | pep8-2dc5597feb662a916d58370602c345d013dc3482.tar.gz |
Regex: detect any code with pattern '[A-Z]\d{3}'
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ INDENT_REGEX = re.compile(r'([ \t]*)') RAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*(,)') RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,\s*\w+\s*,\s*\w+') SELFTEST_REGEX = re.compile(r'\b(Okay|[EW]\d{3}):\s(.*)') -ERRORCODE_REGEX = re.compile(r'\b[EW]\d{3}\b') +ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b') DOCSTRING_REGEX = re.compile(r'u?r?["\']') EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]') WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)') |