From 45ac229fb13af7bf3cb9e20a0975ed734890875e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 7 Apr 2019 17:35:19 +0200 Subject: [PATCH] Fix pylint errors --- gajim/gtk/adhoc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gajim/gtk/adhoc.py b/gajim/gtk/adhoc.py index c2afe1e7e..9ff935b5a 100644 --- a/gajim/gtk/adhoc.py +++ b/gajim/gtk/adhoc.py @@ -96,7 +96,7 @@ class AdHocCommand(Gtk.Assistant): commands = Gtk.Button(label=_('Commands')) commands.connect('clicked', - lambda *args: self.set_current_page(Page.COMMANDS)) + lambda *args: self.set_current_page(Page.COMMANDS)) self._buttons['commands'] = commands self.add_action_widget(commands) @@ -280,10 +280,11 @@ class Commands(Gtk.Box): self.pack_start(self._scrolled, True, True, 0) self.show_all() - def _search_func(self, model, column, search_text, iter_): + @staticmethod + def _search_func(model, _column, search_text, iter_): return search_text.lower() not in model[iter_][0].lower() - def _on_row_activate(self, tree_view, path, column): + def _on_row_activate(self, _tree_view, _path, _column): self.get_toplevel().execute_action() def add_commands(self, commands):