From 2886fdc4d035a17314b6332df993949da09f498f Mon Sep 17 00:00:00 2001 From: Kili <12865310+KingKili@users.noreply.github.com> Date: Tue, 23 Jul 2019 07:45:46 +0000 Subject: [PATCH] Fix deprecated function warning --- linter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linter.py b/linter.py index 3d04859..0fb2c28 100644 --- a/linter.py +++ b/linter.py @@ -52,10 +52,9 @@ class Annotations(Linter): } def run(self, cmd, code): - settings = self.get_view_settings() options = {} for option in ('errors', 'warnings'): - words = settings.get(option) + words = self.settings.get(option) options[option] = '|'.join(_escape_words(words)) mark_regex = re.compile(self.mark_regex_template.format_map(options))