We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ce326 commit 31926eeCopy full SHA for 31926ee
test/functional/test_framework/script.py
@@ -450,6 +450,10 @@ def join(self, iterable):
450
# join makes no sense for a CScript()
451
raise NotImplementedError
452
453
+ # Python 3.4 compatibility
454
+ def hex(self):
455
+ return hexlify(self).decode('ascii')
456
+
457
def __new__(cls, value=b''):
458
if isinstance(value, bytes) or isinstance(value, bytearray):
459
return super(CScript, cls).__new__(cls, value)
0 commit comments