From bc70b24d800c34244c49797e646b60229ae92c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 17 Sep 2018 23:38:52 +0200 Subject: [PATCH] Fix trailing-comma-tuple pylint errors --- gajim/command_system/implementation/custom.py | 6 +++--- gajim/command_system/implementation/standard.py | 6 +++--- gajim/common/idle.py | 4 ++-- gajim/common/protocol/bytestream.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gajim/command_system/implementation/custom.py b/gajim/command_system/implementation/custom.py index 6aace07dc..ae1ca84e2 100644 --- a/gajim/command_system/implementation/custom.py +++ b/gajim/command_system/implementation/custom.py @@ -77,7 +77,7 @@ class CustomChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = ChatCommands, + HOSTS = (ChatCommands,) @command("squal", "bawl") def sing(self): @@ -100,7 +100,7 @@ class CustomPrivateChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = PrivateChatCommands, + HOSTS = (PrivateChatCommands,) @command #Example string. Do not translate @@ -116,7 +116,7 @@ class CustomGroupChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = GroupChatCommands, + HOSTS = (GroupChatCommands,) @command def fetch(self): diff --git a/gajim/command_system/implementation/standard.py b/gajim/command_system/implementation/standard.py index 6a0871585..553643c55 100644 --- a/gajim/command_system/implementation/standard.py +++ b/gajim/command_system/implementation/standard.py @@ -225,7 +225,7 @@ class StandardChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = ChatCommands, + HOSTS = (ChatCommands,) class StandardPrivateChatCommands(CommandContainer): """ @@ -234,7 +234,7 @@ class StandardPrivateChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = PrivateChatCommands, + HOSTS = (PrivateChatCommands,) class StandardGroupChatCommands(CommandContainer): """ @@ -243,7 +243,7 @@ class StandardGroupChatCommands(CommandContainer): """ AUTOMATIC = True - HOSTS = GroupChatCommands, + HOSTS = (GroupChatCommands,) @command @doc(_("Clear the text window")) diff --git a/gajim/common/idle.py b/gajim/common/idle.py index e64fec556..b2cdffcf8 100644 --- a/gajim/common/idle.py +++ b/gajim/common/idle.py @@ -103,9 +103,9 @@ class XssIdleMonitor: raise OSError('libX11 could not be found.') libX11 = ctypes.cdll.LoadLibrary(libX11path) libX11.XOpenDisplay.restype = display_p - libX11.XOpenDisplay.argtypes = ctypes.c_char_p, + libX11.XOpenDisplay.argtypes = (ctypes.c_char_p,) libX11.XDefaultRootWindow.restype = xid - libX11.XDefaultRootWindow.argtypes = display_p, + libX11.XDefaultRootWindow.argtypes = (display_p,) libXsspath = ctypes.util.find_library('Xss') if libXsspath is None: diff --git a/gajim/common/protocol/bytestream.py b/gajim/common/protocol/bytestream.py index ce4d82799..5b5e168e8 100644 --- a/gajim/common/protocol/bytestream.py +++ b/gajim/common/protocol/bytestream.py @@ -410,7 +410,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream): except socket.gaierror: from gajim.common.connection_handlers_events import InformationEvent app.nec.push_incoming_event( - InformationEvent(None, dialog_name='wrong-host')), + InformationEvent(None, dialog_name='wrong-host')) def _add_addiditional_streamhosts_to_query(self, query, file_props): sender = file_props.sender