From 41c29f6d1df0f78cfeb0b688a0a1750c8b2e5c03 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sat, 17 Feb 2018 19:27:21 -0500 Subject: [PATCH] qa: Fix python TypeError in script.py Github-Pull: #12475 Rebased-From: fa41d68a2e3f2148c3539a11b61ff835e3141c0d --- test/functional/test_framework/script.py | 4 +--- 1 file changed, 1 insertion(+), 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)