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 1313
1414from contextlib import contextmanager
1515from 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
1726
1827
1928class Pydocstyle (PythonLinter ):
@@ -26,7 +35,7 @@ class Pydocstyle(PythonLinter):
2635 version_requirement = '>= 0.3.0'
2736 regex = r'^.+?:(?P<line>\d+).*:\r?\n\s*(?P<warning>D\d{3}):\s(?P<message>.+)$'
2837 multiline = True
29- default_type = highlight . WARNING
38+ default_type = WARNING
3039 error_stream = util .STREAM_BOTH
3140 line_col_base = (1 , 0 ) # uses one-based line and zero-based column numbers
3241 tempfile_suffix = 'py'
You can’t perform that action at this time.
0 commit comments