[Lint] Fix pylint signature-differs warning

This commit is contained in:
bendikro 2016-04-30 03:00:08 +02:00 committed by Calum Lind
parent 84d2d20e13
commit 5826446509
3 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ disable=missing-docstring, invalid-name, old-style-class, bad-continuation, wron
R,
unused-argument, fixme, protected-access, import-error, unused-variable,
global-statement, attribute-defined-outside-init, arguments-differ,
no-init, non-parent-init-called, super-init-not-called, signature-differs,
no-init, non-parent-init-called, super-init-not-called,
broad-except, pointless-except
[REPORTS]

View File

@ -18,7 +18,7 @@ from types import FunctionType
from OpenSSL import SSL, crypto
from twisted.internet import defer, reactor
from twisted.internet.protocol import Factory
from twisted.internet.protocol import Factory, connectionDone
import deluge.component as component
import deluge.configmanager
@ -159,7 +159,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
# Set the initial auth level of this session to AUTH_LEVEL_NONE
self.factory.authorized_sessions[self.transport.sessionno] = AUTH_LEVEL_NONE
def connectionLost(self, reason): # NOQA
def connectionLost(self, reason=connectionDone): # NOQA
"""
This method is called when the client is disconnected.

View File

@ -18,7 +18,7 @@ from urlparse import urlparse
import twisted.internet.error
from twisted.internet import reactor
from twisted.internet.protocol import ClientFactory, Factory, Protocol
from twisted.internet.protocol import ClientFactory, Factory, Protocol, connectionDone
import deluge.component as component
from deluge.common import decode_string, is_magnet, is_url, windows_check
@ -55,7 +55,7 @@ class IPCProtocolClient(Protocol):
self.transport.write(rencode.dumps(self.factory.args))
self.transport.loseConnection()
def connectionLost(self, reason): # NOQA
def connectionLost(self, reason=connectionDone): # NOQA
reactor.stop()
self.factory.stop = True