diff options
| author | MarcoFalke <[email protected]> | 2015-12-02 18:12:23 +0100 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-01-13 20:31:03 +0100 |
| commit | 7777994846cdb9b9cf69e391a33eeed30393bbcf (patch) | |
| tree | 371953417d82780ca58a8cd7c8fe96e4c71fa216 /qa/rpc-tests/test_framework/script.py | |
| parent | Merge pull request #7332 (diff) | |
| download | discoin-7777994846cdb9b9cf69e391a33eeed30393bbcf.tar.xz discoin-7777994846cdb9b9cf69e391a33eeed30393bbcf.zip | |
[qa] Fix pyton syntax in rpc tests
Diffstat (limited to 'qa/rpc-tests/test_framework/script.py')
| -rw-r--r-- | qa/rpc-tests/test_framework/script.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/rpc-tests/test_framework/script.py b/qa/rpc-tests/test_framework/script.py index 008887602..bf5e25fb2 100644 --- a/qa/rpc-tests/test_framework/script.py +++ b/qa/rpc-tests/test_framework/script.py @@ -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) |