|
|
@ -526,11 +526,9 @@ class CScript(bytes): |
|
|
|
yield CScriptOp(opcode) |
|
|
|
yield CScriptOp(opcode) |
|
|
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
def __repr__(self): |
|
|
|
# For Python3 compatibility add b before strings so testcases don't |
|
|
|
|
|
|
|
# need to change |
|
|
|
|
|
|
|
def _repr(o): |
|
|
|
def _repr(o): |
|
|
|
if isinstance(o, bytes): |
|
|
|
if isinstance(o, bytes): |
|
|
|
return b"x('%s')" % hexlify(o).decode('ascii') |
|
|
|
return "x('%s')" % hexlify(o).decode('ascii') |
|
|
|
else: |
|
|
|
else: |
|
|
|
return repr(o) |
|
|
|
return repr(o) |
|
|
|
|
|
|
|
|
|
|
|