[qa] Fix pyton syntax in rpc tests

This commit is contained in:
MarcoFalke
2015-12-02 18:12:23 +01:00
parent 17ef279304
commit 7777994846
34 changed files with 80 additions and 129 deletions

View File

@@ -14,7 +14,8 @@ Functionality to build scripts, as well as SignatureHash().
from __future__ import absolute_import, division, print_function, unicode_literals
from test_framework.mininode import CTransaction, CTxOut, hash256
from .mininode import CTransaction, CTxOut, hash256
from binascii import hexlify
import sys
bchr = chr
@@ -24,10 +25,9 @@ if sys.version > '3':
bchr = lambda x: bytes([x])
bord = lambda x: x
import copy
import struct
from test_framework.bignum import bn2vch
from .bignum import bn2vch
MAX_SCRIPT_SIZE = 10000
MAX_SCRIPT_ELEMENT_SIZE = 520
@@ -777,7 +777,7 @@ class CScript(bytes):
# need to change
def _repr(o):
if isinstance(o, bytes):
return "x('%s')" % binascii.hexlify(o).decode('utf8')
return "x('%s')" % hexlify(o).decode('utf8')
else:
return repr(o)