mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-02 08:51:21 +01: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:
@@ -97,7 +97,6 @@ class ValidationTracepointTest(BitcoinTestFramework):
|
||||
usdt_contexts=[ctx], debug=0)
|
||||
|
||||
def handle_blockconnected(_, data, __):
|
||||
nonlocal events
|
||||
event = ctypes.cast(data, ctypes.POINTER(Block)).contents
|
||||
self.log.info(f"handle_blockconnected(): {event}")
|
||||
events.append(event)
|
||||
|
||||
Reference in New Issue
Block a user