lint: fix issues from lint-python

This commit is contained in:
Byron Hambly 2025-08-08 13:55:12 +02:00
parent 95503abe8c
commit 4adeea7339
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
2 changed files with 2 additions and 3 deletions

View file

@ -605,7 +605,7 @@ class CTxOutValue:
return r
def setToAmount(self, amount):
if type(amount) == int:
if isinstance(amount, int):
commit = [1]*9
for i in range(8): #8 bytes
commit[8-i] = ((amount >> (i*8)) & 0xff)
@ -663,7 +663,7 @@ class CTxOut():
def __init__(self, nValue=CTxOutValue(), scriptPubKey=b'', nAsset=CTxOutAsset(BITCOIN_ASSET_OUT), nNonce=CTxOutNonce()):
self.nAsset = nAsset
if type(nValue) is int:
if isinstance(nValue, int):
self.nValue = CTxOutValue(nValue)
else:
self.nValue = nValue

View file

@ -5,7 +5,6 @@
"""Test the importprunedfunds and removeprunedfunds RPCs."""
from decimal import Decimal
from test_framework.address import key_to_p2wpkh
from test_framework.blocktools import COINBASE_MATURITY
from test_framework import liquid_addr
from test_framework.key import ECKey