diff options
author | stickies-v <stickies-v@protonmail.com> | 2023-06-23 12:01:12 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2023-06-23 16:47:43 +0100 |
commit | bc432704505eb165dd86de39ea3434c6fb7a2514 (patch) | |
tree | 0f2c5858862ef37420723dadc78e8f42474bc53a /test/functional/interface_usdt_validation.py | |
parent | 326db63a6819813db55ba0d01ab4fe80f7a0d818 (diff) | |
download | bitcoin-bc432704505eb165dd86de39ea3434c6fb7a2514.tar.xz |
test: refactor: remove unnecessary nonlocal
Since we're only mutating, and not reassigning, we don't need to
declare `events` as `nonlocal`.
Diffstat (limited to 'test/functional/interface_usdt_validation.py')
-rwxr-xr-x | test/functional/interface_usdt_validation.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/functional/interface_usdt_validation.py b/test/functional/interface_usdt_validation.py index f32d83a50c..e29b2c46eb 100755 --- a/test/functional/interface_usdt_validation.py +++ b/test/functional/interface_usdt_validation.py @@ -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) |