Skip to content

Commit 8676521

Browse files
committed
Error and warning are explicitly captured separately in the regex now
1 parent 2cca714 commit 8676521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class Pep8(PythonLinter):
1515
language = 'python'
1616
cmd = ('pep8@python', '*', '-')
17-
regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?P<type>[EW])\d+ (?P<error>.+)'
17+
regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?:(?P<error>E)|(?P<warning>W))\d+ (?P<message>.+)'
1818
multiline = True
1919
defaults = {
2020
'--select=,': "",

0 commit comments

Comments
 (0)