Skip to content

Commit

Permalink
Fix deprecated function warning (#26)
Browse files Browse the repository at this point in the history
Fix deprecated function warning
  • Loading branch information
kaste committed Jul 23, 2019
2 parents e32bef5 + 2886fdc commit 1be097b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linter.py
Expand Up @@ -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))
Expand Down

0 comments on commit 1be097b

Please sign in to comment.