File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ def encode(obj):
379
379
r .append (0x80 if neg else 0 )
380
380
elif neg :
381
381
r [- 1 ] |= 0x80
382
- return bytes (bytes ( [len (r )]) + r )
382
+ return bytes ([len (r )]) + r
383
383
384
384
385
385
class CScript (bytes ):
@@ -404,9 +404,9 @@ def __coerce_instance(cls, other):
404
404
other = CScriptNum .encode (other )
405
405
elif isinstance (other , int ):
406
406
if 0 <= other <= 16 :
407
- other = bytes (bytes ( [CScriptOp .encode_op_n (other )]) )
407
+ other = bytes ([CScriptOp .encode_op_n (other )])
408
408
elif other == - 1 :
409
- other = bytes (bytes ( [OP_1NEGATE ]) )
409
+ other = bytes ([OP_1NEGATE ])
410
410
else :
411
411
other = CScriptOp .encode_op_pushdata (bn2vch (other ))
412
412
elif isinstance (other , (bytes , bytearray )):
You can’t perform that action at this time.
0 commit comments