Skip to content

Commit fa41d68

Browse files
author
MarcoFalke
committed
qa: Fix python TypeError in script.py
1 parent 27c59dc commit fa41d68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/test_framework/script.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,9 @@ def __iter__(self):
526526
yield CScriptOp(opcode)
527527

528528
def __repr__(self):
529-
# For Python3 compatibility add b before strings so testcases don't
530-
# need to change
531529
def _repr(o):
532530
if isinstance(o, bytes):
533-
return b"x('%s')" % hexlify(o).decode('ascii')
531+
return "x('%s')" % hexlify(o).decode('ascii')
534532
else:
535533
return repr(o)
536534

0 commit comments

Comments
 (0)