From abf190e4e7d79be6f4749dec24a3933e7a8a4507 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 22 Mar 2018 12:36:37 -0400 Subject: [PATCH] [tests] fix flake8 warnings in interface_rest.py test --- test/functional/interface_rest.py | 245 ++++++++++++++---------------- 1 file changed, 116 insertions(+), 129 deletions(-) diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py index 6f585f6825a83..4f39dcd024570 100755 --- a/test/functional/interface_rest.py +++ b/test/functional/interface_rest.py @@ -3,25 +3,26 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the REST API.""" - -from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import * -from struct import * +from decimal import Decimal from io import BytesIO +import json from codecs import encode +from struct import pack, unpack import http.client import urllib.parse -def deser_uint256(f): - r = 0 - for i in range(8): - t = unpack(b"