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:
stickies-v
2023-06-23 12:01:12 +01:00
parent 326db63a68
commit bc43270450
2 changed files with 0 additions and 2 deletions

View File

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