Skip to content

Commit 1be097b

Browse files
authored
Fix deprecated function warning (#26)
Fix deprecated function warning
2 parents e32bef5 + 2886fdc commit 1be097b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

linter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ class Annotations(Linter):
5252
}
5353

5454
def run(self, cmd, code):
55-
settings = self.get_view_settings()
5655
options = {}
5756
for option in ('errors', 'warnings'):
58-
words = settings.get(option)
57+
words = self.settings.get(option)
5958
options[option] = '|'.join(_escape_words(words))
6059

6160
mark_regex = re.compile(self.mark_regex_template.format_map(options))

0 commit comments

Comments
 (0)