Remove excessive pylint comments after bb5f96cc
This commit is contained in:
parent
9e4b117eb0
commit
95792a2c68
@ -525,7 +525,7 @@ class BMRPCDispatcher(object):
|
|||||||
status, addressVersionNumber, streamNumber, ripe)
|
status, addressVersionNumber, streamNumber, ripe)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _dump_inbox_message( # pylint: disable=too-many-arguments
|
def _dump_inbox_message(
|
||||||
msgid, toAddress, fromAddress, subject, received,
|
msgid, toAddress, fromAddress, subject, received,
|
||||||
message, encodingtype, read):
|
message, encodingtype, read):
|
||||||
subject = shared.fixPotentiallyInvalidUTF8Data(subject)
|
subject = shared.fixPotentiallyInvalidUTF8Data(subject)
|
||||||
@ -771,7 +771,6 @@ class BMRPCDispatcher(object):
|
|||||||
))
|
))
|
||||||
return queues.apiAddressGeneratorReturnQueue.get()
|
return queues.apiAddressGeneratorReturnQueue.get()
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
@command('createDeterministicAddresses')
|
@command('createDeterministicAddresses')
|
||||||
def HandleCreateDeterministicAddresses(
|
def HandleCreateDeterministicAddresses(
|
||||||
self, passphrase, numberOfAddresses=1, addressVersionNumber=0,
|
self, passphrase, numberOfAddresses=1, addressVersionNumber=0,
|
||||||
|
@ -28,7 +28,7 @@ def search_sql(
|
|||||||
:return: all messages where <where> field contains <what>
|
:return: all messages where <where> field contains <what>
|
||||||
:rtype: list[list]
|
:rtype: list[list]
|
||||||
"""
|
"""
|
||||||
# pylint: disable=too-many-arguments, too-many-branches
|
# pylint: disable=too-many-branches
|
||||||
if what:
|
if what:
|
||||||
what = '%' + what + '%'
|
what = '%' + what + '%'
|
||||||
if where == _translate("MainWindow", "To"):
|
if where == _translate("MainWindow", "To"):
|
||||||
@ -84,7 +84,6 @@ def check_match(
|
|||||||
Check if a single message matches a filter (used when new messages
|
Check if a single message matches a filter (used when new messages
|
||||||
are added to messagelists)
|
are added to messagelists)
|
||||||
"""
|
"""
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
if not what:
|
if not what:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class BMObjectAlreadyHaveError(Exception):
|
|||||||
errorCodes = ("Already have this object")
|
errorCodes = ("Already have this object")
|
||||||
|
|
||||||
|
|
||||||
class BMObject(object): # pylint: disable=too-many-instance-attributes
|
class BMObject(object):
|
||||||
"""Bitmessage Object as a class."""
|
"""Bitmessage Object as a class."""
|
||||||
|
|
||||||
# max TTL, 28 days and 3 hours
|
# max TTL, 28 days and 3 hours
|
||||||
@ -57,7 +57,7 @@ class BMObject(object): # pylint: disable=too-many-instance-attributes
|
|||||||
streamNumber,
|
streamNumber,
|
||||||
data,
|
data,
|
||||||
payloadOffset
|
payloadOffset
|
||||||
): # pylint: disable=too-many-arguments
|
):
|
||||||
self.nonce = nonce
|
self.nonce = nonce
|
||||||
self.expiresTime = expiresTime
|
self.expiresTime = expiresTime
|
||||||
self.objectType = objectType
|
self.objectType = objectType
|
||||||
|
@ -27,8 +27,6 @@ logger = logging.getLogger('default')
|
|||||||
|
|
||||||
class BMConnectionPool(object):
|
class BMConnectionPool(object):
|
||||||
"""Pool of all existing connections"""
|
"""Pool of all existing connections"""
|
||||||
# pylint: disable=too-many-instance-attributes
|
|
||||||
|
|
||||||
trustedPeer = None
|
trustedPeer = None
|
||||||
"""
|
"""
|
||||||
If the trustedpeer option is specified in keys.dat then this will
|
If the trustedpeer option is specified in keys.dat then this will
|
||||||
|
@ -43,8 +43,7 @@ else:
|
|||||||
|
|
||||||
class TLSDispatcher(AdvancedDispatcher):
|
class TLSDispatcher(AdvancedDispatcher):
|
||||||
"""TLS functionality for classes derived from AdvancedDispatcher"""
|
"""TLS functionality for classes derived from AdvancedDispatcher"""
|
||||||
# pylint: disable=too-many-instance-attributes, too-many-arguments
|
# pylint: disable=too-many-instance-attributes,super-init-not-called
|
||||||
# pylint: disable=super-init-not-called
|
|
||||||
def __init__(self, _=None, sock=None, certfile=None, keyfile=None,
|
def __init__(self, _=None, sock=None, certfile=None, keyfile=None,
|
||||||
server_side=False, ciphers=sslProtocolCiphers):
|
server_side=False, ciphers=sslProtocolCiphers):
|
||||||
self.want_read = self.want_write = True
|
self.want_read = self.want_write = True
|
||||||
|
@ -336,8 +336,9 @@ def assembleAddrMessage(peerList):
|
|||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
|
||||||
def assembleVersionMessage( # pylint: disable=too-many-arguments
|
def assembleVersionMessage(
|
||||||
remoteHost, remotePort, participatingStreams, dandelion_enabled=True, server=False, nodeid=None,
|
remoteHost, remotePort, participatingStreams,
|
||||||
|
dandelion_enabled=True, server=False, nodeid=None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Construct the payload of a version message,
|
Construct the payload of a version message,
|
||||||
|
@ -54,7 +54,7 @@ class ECC(object):
|
|||||||
pubkey_y=None,
|
pubkey_y=None,
|
||||||
raw_privkey=None,
|
raw_privkey=None,
|
||||||
curve='sect283r1',
|
curve='sect283r1',
|
||||||
): # pylint: disable=too-many-arguments
|
):
|
||||||
"""
|
"""
|
||||||
For a normal and high level use, specifie pubkey,
|
For a normal and high level use, specifie pubkey,
|
||||||
privkey (if you need) and the curve
|
privkey (if you need) and the curve
|
||||||
@ -478,7 +478,7 @@ class ECC(object):
|
|||||||
curve='sect283r1',
|
curve='sect283r1',
|
||||||
ephemcurve=None,
|
ephemcurve=None,
|
||||||
ciphername='aes-256-cbc',
|
ciphername='aes-256-cbc',
|
||||||
): # pylint: disable=too-many-arguments
|
):
|
||||||
"""ECDH encryption, keys supplied in binary data format"""
|
"""ECDH encryption, keys supplied in binary data format"""
|
||||||
|
|
||||||
if ephemcurve is None:
|
if ephemcurve is None:
|
||||||
|
@ -208,7 +208,7 @@ class ECCBlind(object): # pylint: disable=too-many-instance-attributes
|
|||||||
self.value.serialize(),
|
self.value.serialize(),
|
||||||
self._ec_point_serialize(self.Q))
|
self._ec_point_serialize(self.Q))
|
||||||
|
|
||||||
def __init__(self, curve="secp256k1", pubkey=None, privkey=None, # pylint: disable=too-many-arguments
|
def __init__(self, curve="secp256k1", pubkey=None, privkey=None,
|
||||||
year=2025, month=11, value=0xFF):
|
year=2025, month=11, value=0xFF):
|
||||||
self.ctx = OpenSSL.BN_CTX_new()
|
self.ctx = OpenSSL.BN_CTX_new()
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ class Router: # pylint: disable=old-style-class
|
|||||||
description,
|
description,
|
||||||
leaseDuration=0,
|
leaseDuration=0,
|
||||||
enabled=1,
|
enabled=1,
|
||||||
): # pylint: disable=too-many-arguments
|
):
|
||||||
"""Add UPnP port mapping"""
|
"""Add UPnP port mapping"""
|
||||||
|
|
||||||
resp = self.soapRequest(self.upnp_schema + ':1', 'AddPortMapping', [
|
resp = self.soapRequest(self.upnp_schema + ':1', 'AddPortMapping', [
|
||||||
|
Reference in New Issue
Block a user