From 2c8b85f612968bd7c9edfeedaa735da73739df84 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Wed, 4 Dec 2019 08:07:25 -0800 Subject: [PATCH] Update to py3, ISSUE with encoding --- qa/rpc-tests/p2p_txexpiringsoon.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qa/rpc-tests/p2p_txexpiringsoon.py b/qa/rpc-tests/p2p_txexpiringsoon.py index 01fd90768..cb39977f8 100755 --- a/qa/rpc-tests/p2p_txexpiringsoon.py +++ b/qa/rpc-tests/p2p_txexpiringsoon.py @@ -1,10 +1,8 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2018 The Zcash developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . -import sys; assert sys.version_info < (3,), ur"This script does not run under Python 3. Please use Python 2.7.x." - from test_framework.authproxy import JSONRPCException from test_framework.mininode import NodeConn, NetworkThread, CInv, \ msg_mempool, msg_getdata, msg_tx, mininode_lock, SAPLING_PROTO_VERSION @@ -19,7 +17,7 @@ from binascii import hexlify class TxExpiringSoonTest(BitcoinTestFramework): def setup_chain(self): - print "Initializing test directory " + self.options.tmpdir + print("Initializing test directory " + self.options.tmpdir) initialize_chain_clean(self.options.tmpdir, 3) def setup_network(self):