Fix comparison-with-callable pylint errors

This commit is contained in:
Philipp Hörist 2019-04-07 18:48:51 +02:00
parent c8815a9230
commit 0dbb3eb1d5
1 changed files with 2 additions and 2 deletions

View File

@ -42,10 +42,10 @@ def build_resources_submenu(contacts, account, action, room_jid=None,
item = Gtk.MenuItem.new_with_label(
'%s (%s)' % (c.resource, str(c.priority)))
sub_menu.append(item)
if action == roster.on_invite_to_room:
if action == roster.on_invite_to_room: # pylint: disable=comparison-with-callable
item.connect('activate', action, [(c, account)], room_jid,
room_account, c.resource)
elif action == roster.on_invite_to_new_room:
elif action == roster.on_invite_to_new_room: # pylint: disable=comparison-with-callable
item.connect('activate', action, [(c, account)], c.resource)
else: # start_chat, execute_command, send_file
item.connect('activate', action, c, account, c.resource)