mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
lint: Changes for flake8 7.2
This commit is contained in:
@@ -357,7 +357,6 @@ def make_rpc_func(node_id, base_rpc_port=BASE_RPC_PORT):
|
||||
auth = "test{0}:test_pass{0}".format(node_id)
|
||||
|
||||
def rpc_func(method, params=None, wallet=None):
|
||||
nonlocal node_id, auth
|
||||
return callrpc(base_rpc_port + node_id, auth, method, params, wallet)
|
||||
|
||||
return rpc_func
|
||||
|
||||
@@ -277,7 +277,6 @@ def make_part_cli_rpc_func(node_id):
|
||||
node_id = node_id
|
||||
|
||||
def rpc_func(method, params=None, wallet=None):
|
||||
nonlocal node_id
|
||||
cmd = method
|
||||
if params:
|
||||
for p in params:
|
||||
|
||||
@@ -70,7 +70,6 @@ def make_rpc_func(node_id, base_rpc_port):
|
||||
auth = "test{0}:test_pass{0}".format(node_id)
|
||||
|
||||
def rpc_func(method, params=None):
|
||||
nonlocal node_id, auth
|
||||
return callrpc(base_rpc_port + node_id, auth, method, params)
|
||||
|
||||
return rpc_func
|
||||
|
||||
@@ -257,7 +257,6 @@ def make_part_cli_rpc_func(node_id):
|
||||
node_id = node_id
|
||||
|
||||
def rpc_func(method, params=None, wallet=None):
|
||||
nonlocal node_id
|
||||
cmd = method
|
||||
if params:
|
||||
for p in params:
|
||||
|
||||
@@ -282,7 +282,6 @@ def make_part_cli_rpc_func(node_id):
|
||||
node_id = node_id
|
||||
|
||||
def rpc_func(method, params=None, wallet=None):
|
||||
nonlocal node_id
|
||||
cmd = method
|
||||
if params:
|
||||
for p in params:
|
||||
|
||||
@@ -113,7 +113,6 @@ class Test(BaseTest):
|
||||
pi = swap_clients[0].pi(SwapTypes.XMR_SWAP)
|
||||
|
||||
def wait_for_unspents(delay_event, iterations=20, delay_time=0.5):
|
||||
nonlocal ci
|
||||
i = 0
|
||||
while not delay_event.is_set():
|
||||
unspents = ci.rpc_wallet("listunspentblind")
|
||||
|
||||
@@ -111,7 +111,6 @@ class Test(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_reload(self):
|
||||
global stop_test
|
||||
processes = []
|
||||
|
||||
for i in range(3):
|
||||
|
||||
Reference in New Issue
Block a user