mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
test: refactor: remove unnecessary nonlocal
Since we're only mutating, and not reassigning, we don't need to declare `events` as `nonlocal`.
This commit is contained in:
@@ -139,7 +139,6 @@ class NetTracepointTest(BitcoinTestFramework):
|
||||
checked_outbound_version_msg += 1
|
||||
|
||||
def handle_inbound(_, data, __):
|
||||
nonlocal events
|
||||
event = ctypes.cast(data, ctypes.POINTER(P2PMessage)).contents
|
||||
events.append((event, True))
|
||||
|
||||
|
Reference in New Issue
Block a user