Skip to content

Commit e999772

Browse files
committed
fixup CScriptNum decoding linting issues
1 parent 79a4533 commit e999772

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def __init__(self, d=0):
368368

369369
@staticmethod
370370
def encode(obj):
371-
val = obj.value;
371+
val = obj.value
372372
r = bytearray(0)
373373
if val == 0:
374374
return bytes(r)
@@ -385,7 +385,7 @@ def encode(obj):
385385

386386
@staticmethod
387387
def decode(vch):
388-
push_size = vch[0] # We assume valid push_size and minimal encoding
388+
# We assume valid push_size and minimal encoding
389389
value = vch[1:]
390390
# Mask for all but the highest result bit
391391
num_mask = (2**(len(value)*8) - 1) >> 1

0 commit comments

Comments
 (0)