diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-03-19 21:36:32 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-03-31 18:35:17 +0200 |
commit | fa524d9ddbad0a03f9eb974100fb3b6001045645 (patch) | |
tree | 35e826d3fc5015df5e86989b68a1cec847c105b1 /qa/rpc-tests/listtransactions.py | |
parent | 28ad4d9fc2be102786a8c6c32ebecb466b2a03dd (diff) |
[qa] Use python2/3 syntax
Diffstat (limited to 'qa/rpc-tests/listtransactions.py')
-rwxr-xr-x | qa/rpc-tests/listtransactions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/listtransactions.py b/qa/rpc-tests/listtransactions.py index da1e98dc33..c4eca519b7 100755 --- a/qa/rpc-tests/listtransactions.py +++ b/qa/rpc-tests/listtransactions.py @@ -8,12 +8,12 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.mininode import CTransaction, COIN -import cStringIO +from io import BytesIO import binascii def txFromHex(hexstring): tx = CTransaction() - f = cStringIO.StringIO(binascii.unhexlify(hexstring)) + f = BytesIO(binascii.unhexlify(hexstring)) tx.deserialize(f) return tx |