Skip to content

Commit 4169d69

Browse files
committed
Net necessary anymore
1 parent 169076e commit 4169d69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyls_mypy/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
import logging
66
from mypy import api as mypy_api
77
from pyls import hookimpl
8+
from sys import platform
89

9-
line_pattern = r"([a-z]:[^:]+):(?:(\d+):)?(?:(\d+):)? (\w+): (.*)"
10+
line_pattern = r"([^:]+):(?:(\d+):)?(?:(\d+):)? (\w+): (.*)"
1011

1112
log = logging.getLogger(__name__)
1213

@@ -41,7 +42,7 @@ def parse_line(line, document=None):
4142
# There may be a better solution, but mypy does not provide end
4243
'end': {'line': lineno, 'character': offset + 1}
4344
},
44-
'message': msg.replace("]", "]"),#Prevents spyder from messign it up
45+
'message': msg,
4546
'severity': errno
4647
}
4748
if document:

0 commit comments

Comments
 (0)