Make `lint` a function
@@ -178,10 +178,11 @@ class SublimeLinter(sublime_plugin.EventListener, Listener):
if vid in persist.view_linters:
view_has_changed = make_view_has_changed_fn(view)
- fn = partial(self.lint, view, view_has_changed)
+ fn = partial(lint, view, view_has_changed)
queue.debounce(fn, key=view.buffer_id())
- def lint(self, view, view_has_changed):
+
+def lint(view, view_has_changed):
"""Lint the view with the given id.
This method is called asynchronously by queue.Daemon when a lint
