File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
from contextlib import contextmanager
15
15
from functools import partial
16
- from SublimeLinter .lint import PythonLinter , highlight , persist , util
16
+ from SublimeLinter .lint import PythonLinter , persist , util
17
+
18
+
19
+ import SublimeLinter
20
+ if getattr (SublimeLinter .lint , 'VERSION' , 3 ) > 3 :
21
+ from SublimeLinter .lint import const
22
+ WARNING = const .WARNING
23
+ else :
24
+ from SublimeLinter .lint import highlight
25
+ WARNING = highlight .WARNING
17
26
18
27
19
28
class Pydocstyle (PythonLinter ):
@@ -26,7 +35,7 @@ class Pydocstyle(PythonLinter):
26
35
version_requirement = '>= 0.3.0'
27
36
regex = r'^.+?:(?P<line>\d+).*:\r?\n\s*(?P<warning>D\d{3}):\s(?P<message>.+)$'
28
37
multiline = True
29
- default_type = highlight . WARNING
38
+ default_type = WARNING
30
39
error_stream = util .STREAM_BOTH
31
40
line_col_base = (1 , 0 ) # uses one-based line and zero-based column numbers
32
41
tempfile_suffix = 'py'
You can’t perform that action at this time.
0 commit comments