mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
qa: Fix python TypeError in script.py
This commit is contained in:
parent
27c59dc502
commit
fa41d68a2e
@ -526,11 +526,9 @@ class CScript(bytes):
|
||||
yield CScriptOp(opcode)
|
||||
|
||||
def __repr__(self):
|
||||
# For Python3 compatibility add b before strings so testcases don't
|
||||
# need to change
|
||||
def _repr(o):
|
||||
if isinstance(o, bytes):
|
||||
return b"x('%s')" % hexlify(o).decode('ascii')
|
||||
return "x('%s')" % hexlify(o).decode('ascii')
|
||||
else:
|
||||
return repr(o)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user