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

@@ -42,7 +42,6 @@ def make_rpc_func(port, auth, host="127.0.0.1"):
host = host
def rpc_func(method, params=None):
nonlocal port, auth, host
return callrpc(port, auth, method, params, host)
return rpc_func

View File

@@ -159,7 +159,6 @@ def make_rpc_func(port, auth, wallet=None, host="127.0.0.1"):
host = host
def rpc_func(method, params=None, wallet_override=None):
nonlocal port, auth, wallet, host
return callrpc(
port,
auth,

View File

@@ -309,7 +309,6 @@ def make_xmr_rpc2_func(
transport.set_proxy(proxy_host, proxy_port)
def rpc_func(method, params=None, wallet=None, timeout=default_timeout):
nonlocal port, auth, host, transport, tag
return callrpc_xmr2(
port,
method,
@@ -345,7 +344,6 @@ def make_xmr_rpc_func(
transport.set_proxy(proxy_host, proxy_port)
def rpc_func(method, params=None, wallet=None, timeout=default_timeout):
nonlocal port, auth, host, transport, tag
return callrpc_xmr(
port,
method,

View File

@@ -38,8 +38,7 @@ def make_reporthook(read_start: int, logger):
logger.info(f"Attempting to resume from byte {read_start}")
def reporthook(blocknum, blocksize, totalsize):
nonlocal read, last_percent_str, time_last, read_last, display_last, read_start
nonlocal average_buffer, abo, logger
nonlocal read, last_percent_str, time_last, read_last, display_last, abo
read += blocksize
# totalsize excludes read_start