Skip to content

Commit e9ccee0

Browse files
hackaugustoLefterisJP
authored andcommitted
pylint warnings
1 parent a3a9926 commit e9ccee0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

raiden/network/rpc/client.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- coding: utf-8 -*-
2-
import gevent
3-
from gevent.lock import Semaphore
42
from time import time as now
3+
54
import rlp
5+
import gevent
6+
from gevent.lock import Semaphore
67
from ethereum import slogging
78
from ethereum import _solidity
89
from ethereum.exceptions import InvalidTransaction
@@ -41,8 +42,6 @@
4142
)
4243

4344
log = slogging.getLogger(__name__) # pylint: disable=invalid-name
44-
45-
4645
solidity = _solidity.get_solidity() # pylint: disable=invalid-name
4746

4847
# Coding standard for this module:
@@ -221,7 +220,7 @@ def estimate_and_transact(classobject, callobj, *args):
221220

222221
class BlockChainService(object):
223222
""" Exposes the blockchain's state through JSON-RPC. """
224-
# pylint: disable=too-many-instance-attributes,unused-argument
223+
# pylint: disable=too-many-instance-attributes
225224

226225
def __init__(
227226
self,
@@ -485,7 +484,7 @@ def endpoint_by_address(self, node_address_bin):
485484
node_address_hex = node_address_bin.encode('hex')
486485
endpoint = self.proxy.findEndpointByAddress.call(node_address_hex)
487486

488-
if endpoint is '':
487+
if endpoint == '':
489488
raise KeyError('Unknown address {}'.format(pex(node_address_bin)))
490489

491490
return endpoint
@@ -507,7 +506,6 @@ def __init__(
507506
startgas=GAS_LIMIT,
508507
gasprice=GAS_PRICE,
509508
poll_timeout=DEFAULT_POLL_TIMEOUT):
510-
# pylint: disable=too-many-arguments
511509

512510
result = jsonrpc_client.call(
513511
'eth_getCode',
@@ -783,7 +781,7 @@ def channels_by_participant(self, participant_address): # pylint: disable=inval
783781
for address in address_list
784782
]
785783

786-
def channelnew_filter(self, from_block=None, to_block=None): # pylint: disable=unused-argument
784+
def channelnew_filter(self, from_block=None, to_block=None):
787785
""" Install a new filter for ChannelNew events.
788786
789787
Return:
@@ -900,7 +898,7 @@ def can_transfer(self):
900898
self.detail(None)['our_balance'] > 0
901899
)
902900

903-
def deposit(self, amount): # pylint: disable=unused-argument
901+
def deposit(self, amount):
904902
if not isinstance(amount, (int, long)):
905903
raise ValueError('amount needs to be an integral number.')
906904

0 commit comments

Comments
 (0)