Addressed pylint too-many-positional-arguments in message.Version
This commit is contained in:
parent
70f059d9b1
commit
333af9169c
|
@ -101,9 +101,10 @@ def _payload_read_int(data):
|
||||||
class Version():
|
class Version():
|
||||||
"""The version message payload"""
|
"""The version message payload"""
|
||||||
def __init__(
|
def __init__(
|
||||||
self, host, port, protocol_version=shared.protocol_version,
|
self, host, port,
|
||||||
services=shared.services, nonce=shared.nonce,
|
nonce=shared.nonce, services=shared.services,
|
||||||
user_agent=shared.user_agent, streams=None
|
*, streams=None, user_agent=shared.user_agent,
|
||||||
|
protocol_version=shared.protocol_version,
|
||||||
):
|
):
|
||||||
self.host = host
|
self.host = host
|
||||||
self.port = port
|
self.port = port
|
||||||
|
@ -176,7 +177,8 @@ class Version():
|
||||||
raise ValueError('malformed Version message, wrong streams_count')
|
raise ValueError('malformed Version message, wrong streams_count')
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
host, port, protocol_version, services, nonce, user_agent, streams)
|
host, port, nonce, services, streams=streams,
|
||||||
|
protocol_version=protocol_version, user_agent=user_agent)
|
||||||
|
|
||||||
|
|
||||||
class Inv():
|
class Inv():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user