diff options
| author | MarcoFalke <[email protected]> | 2018-02-17 19:27:21 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-02-18 23:42:01 -0500 |
| commit | fa41d68a2e3f2148c3539a11b61ff835e3141c0d (patch) | |
| tree | 9750a16d5e036f63b1ba81a1d4ef5309dc4a0ff9 | |
| parent | Merge #12464: Revert "[tests] bind functional test nodes to 127.0.0.1" (diff) | |
| download | discoin-fa41d68a2e3f2148c3539a11b61ff835e3141c0d.tar.xz discoin-fa41d68a2e3f2148c3539a11b61ff835e3141c0d.zip | |
qa: Fix python TypeError in script.py
| -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 dae8a4e56..6fe0b445d 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) |