Skip to content
Snippets Groups Projects
Commit 0dbb3eb1 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix comparison-with-callable pylint errors

parent c8815a92
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment