Skip to content

Commit

Permalink
Fix deprecated function warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KingKili authored Jul 23, 2019
1 parent e32bef5 commit 2886fdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linter.py
Original file line number Diff line number Diff line change
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 2886fdc

Please sign in to comment.