klen/python-mode — Issue #45: Pylint regex fix for windows
Author: srathbun
Created: 2012-01-23 21:35:21+00:00
State: open

Currently the pylint regex is:

pylint_re = re.compile('^[^:]+:(\d+): \[([EWRCI]+)[^\]]*\] (.*)$')

This fails on windows because the filename returned from pylint uses windows drivepaths, which use a ```:``` after the first letter. This regex works with either windows or linux:

pylint_re = re.compile('^(.:)?[^:]+:(\d+): \[([EWRCI]+)[^\]]*\] (.*)$')