[Lint] Fix pylint signature-differs warning
This commit is contained in:
parent
84d2d20e13
commit
5826446509
|
@ -69,7 +69,7 @@ disable=missing-docstring, invalid-name, old-style-class, bad-continuation, wron
|
||||||
R,
|
R,
|
||||||
unused-argument, fixme, protected-access, import-error, unused-variable,
|
unused-argument, fixme, protected-access, import-error, unused-variable,
|
||||||
global-statement, attribute-defined-outside-init, arguments-differ,
|
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
|
broad-except, pointless-except
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
|
|
@ -18,7 +18,7 @@ from types import FunctionType
|
||||||
|
|
||||||
from OpenSSL import SSL, crypto
|
from OpenSSL import SSL, crypto
|
||||||
from twisted.internet import defer, reactor
|
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.component as component
|
||||||
import deluge.configmanager
|
import deluge.configmanager
|
||||||
|
@ -159,7 +159,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
|
||||||
# Set the initial auth level of this session to AUTH_LEVEL_NONE
|
# Set the initial auth level of this session to AUTH_LEVEL_NONE
|
||||||
self.factory.authorized_sessions[self.transport.sessionno] = 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.
|
This method is called when the client is disconnected.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ from urlparse import urlparse
|
||||||
|
|
||||||
import twisted.internet.error
|
import twisted.internet.error
|
||||||
from twisted.internet import reactor
|
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
|
import deluge.component as component
|
||||||
from deluge.common import decode_string, is_magnet, is_url, windows_check
|
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.write(rencode.dumps(self.factory.args))
|
||||||
self.transport.loseConnection()
|
self.transport.loseConnection()
|
||||||
|
|
||||||
def connectionLost(self, reason): # NOQA
|
def connectionLost(self, reason=connectionDone): # NOQA
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
self.factory.stop = True
|
self.factory.stop = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue