lint: Changes for flake8 7.2

This commit is contained in:
tecnovert
2025-03-30 00:54:35 +02:00
parent 447f32d6b2
commit a0c31fb87d
12 changed files with 2 additions and 15 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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

View File

@@ -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:

View File

@@ -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:

View File

@@ -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")

View File

@@ -111,7 +111,6 @@ class Test(unittest.TestCase):
)
def test_reload(self):
global stop_test
processes = []
for i in range(3):