--- a/incoming.py Sun Jun 19 00:18:30 2016 +0800
+++ b/incoming.py Sun Jun 19 14:07:11 2016 +0800
- m = re.match(r'^(.+):\d+:\d+: ')
+ m = re.match(r'^(.+):(\d+):\d+: ', line)
- # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
- if re.match(r'^.+:\d+:\d+: E9\d{2}', line) is not None:
- elif re.match(r'^.+:\d+:\d+: [EWFCN]\d{3}', line) is not None:
- elif re.match(r'^.+:\d+:\d+: \[error\]', line) is not None:
- elif re.match(r'^.+:\d+:\d+: \[warning\]', line) is not None:
- elif re.match(r'^.+:\d+:\d+: \(E\d{3}\)', line) is not None:
- elif re.match(r'^.+:\d+:\d+: \(W\d{3}\)', line) is not None:
- elif re.match(r'^.+:\d+:\d+: ', line) is not None:
+ # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
+ if re.match(r'^E9\d{2}', rest) is not None:
+ elif re.match(r'^[EWFCN]\d{3}', rest) is not None:
+ elif re.match(r'^\[error\]', rest) is not None:
+ elif re.match(r'^\[warning\]', rest) is not None:
+ elif re.match(r'^\(E\d{3}\)', rest) is not None:
+ elif re.match(r'^\(W\d{3}\)', rest) is not None:
if line.startswith(meta_prefix):