mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-27 06:19:09 +01:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@@ -824,10 +824,10 @@ def taproot_tree_helper(scripts):
|
||||
if len(scripts) == 1:
|
||||
# One entry: treat as a leaf
|
||||
script = scripts[0]
|
||||
assert(not callable(script))
|
||||
assert not callable(script)
|
||||
if isinstance(script, list):
|
||||
return taproot_tree_helper(script)
|
||||
assert(isinstance(script, tuple))
|
||||
assert isinstance(script, tuple)
|
||||
version = LEAF_VERSION_TAPSCRIPT
|
||||
name = script[0]
|
||||
code = script[1]
|
||||
|
||||
Reference in New Issue
Block a user