diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-02-17 19:27:21 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-02-18 23:42:01 -0500 |
commit | fa41d68a2e3f2148c3539a11b61ff835e3141c0d (patch) | |
tree | 9750a16d5e036f63b1ba81a1d4ef5309dc4a0ff9 /test/functional | |
parent | 27c59dc502f29cf1d76290556c21e366145e3b2e (diff) | |
download | bitcoin-fa41d68a2e3f2148c3539a11b61ff835e3141c0d.tar.xz |
qa: Fix python TypeError in script.py
Diffstat (limited to 'test/functional')
-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) |