Fix trailing-comma-tuple pylint errors

This commit is contained in:
Philipp Hörist 2018-09-17 23:38:52 +02:00 committed by Philipp Hörist
parent e4e998272c
commit bc70b24d80
4 changed files with 9 additions and 9 deletions

View File

@ -77,7 +77,7 @@ class CustomChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = ChatCommands, HOSTS = (ChatCommands,)
@command("squal", "bawl") @command("squal", "bawl")
def sing(self): def sing(self):
@ -100,7 +100,7 @@ class CustomPrivateChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = PrivateChatCommands, HOSTS = (PrivateChatCommands,)
@command @command
#Example string. Do not translate #Example string. Do not translate
@ -116,7 +116,7 @@ class CustomGroupChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = GroupChatCommands, HOSTS = (GroupChatCommands,)
@command @command
def fetch(self): def fetch(self):

View File

@ -225,7 +225,7 @@ class StandardChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = ChatCommands, HOSTS = (ChatCommands,)
class StandardPrivateChatCommands(CommandContainer): class StandardPrivateChatCommands(CommandContainer):
""" """
@ -234,7 +234,7 @@ class StandardPrivateChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = PrivateChatCommands, HOSTS = (PrivateChatCommands,)
class StandardGroupChatCommands(CommandContainer): class StandardGroupChatCommands(CommandContainer):
""" """
@ -243,7 +243,7 @@ class StandardGroupChatCommands(CommandContainer):
""" """
AUTOMATIC = True AUTOMATIC = True
HOSTS = GroupChatCommands, HOSTS = (GroupChatCommands,)
@command @command
@doc(_("Clear the text window")) @doc(_("Clear the text window"))

View File

@ -103,9 +103,9 @@ class XssIdleMonitor:
raise OSError('libX11 could not be found.') raise OSError('libX11 could not be found.')
libX11 = ctypes.cdll.LoadLibrary(libX11path) libX11 = ctypes.cdll.LoadLibrary(libX11path)
libX11.XOpenDisplay.restype = display_p 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.restype = xid
libX11.XDefaultRootWindow.argtypes = display_p, libX11.XDefaultRootWindow.argtypes = (display_p,)
libXsspath = ctypes.util.find_library('Xss') libXsspath = ctypes.util.find_library('Xss')
if libXsspath is None: if libXsspath is None:

View File

@ -410,7 +410,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
except socket.gaierror: except socket.gaierror:
from gajim.common.connection_handlers_events import InformationEvent from gajim.common.connection_handlers_events import InformationEvent
app.nec.push_incoming_event( 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): def _add_addiditional_streamhosts_to_query(self, query, file_props):
sender = file_props.sender sender = file_props.sender