diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-02-17 19:27:21 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-04-20 18:38:41 -0400 |
commit | 41c29f6d1df0f78cfeb0b688a0a1750c8b2e5c03 (patch) | |
tree | df85fc09e7c6d93fdbf45c91020eea263c2f0be7 /test | |
parent | 7460945e0b663585a7af3cde6c8675cbe21b4111 (diff) | |
download | bitcoin-41c29f6d1df0f78cfeb0b688a0a1750c8b2e5c03.tar.xz |
qa: Fix python TypeError in script.py
Github-Pull: #12475
Rebased-From: fa41d68a2e3f2148c3539a11b61ff835e3141c0d
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/test_framework/script.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/test_framework/script.py b/test/functional/test_framework/script.py index dae8a4e569..6fe0b445da 100644 --- a/test/functional/test_framework/script.py +++ b/test/functional/test_framework/script.py @@ -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) |