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 committed 2023-06-23 16:47:43 +01:00
1 parent 326db63a68
commit bc43270450
2 files changed
-2

No files matched your search

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