fix pyflakes errors

This commit is contained in:
mdr0id 2020-01-27 18:55:26 -08:00
parent 93c625397f
commit 8f859cbf85
11 changed files with 9 additions and 29 deletions

View File

@ -10,8 +10,6 @@
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, start_nodes, str_to_b64str from test_framework.util import assert_equal, start_nodes, str_to_b64str
import base64
from http.client import HTTPConnection from http.client import HTTPConnection
from urllib.parse import urlparse from urllib.parse import urlparse

View File

@ -14,7 +14,6 @@ from test_framework.util import (
start_nodes, start_nodes,
str_to_b64str, str_to_b64str,
) )
import base64
import os import os
from http.client import HTTPConnection from http.client import HTTPConnection
from urllib.parse import urlparse from urllib.parse import urlparse

View File

@ -23,9 +23,8 @@ import asyncore
import time import time
import sys import sys
import random import random
from binascii import hexlify, unhexlify from binascii import hexlify
from io import BytesIO from io import BytesIO
from codecs import encode
import hashlib import hashlib
from threading import RLock from threading import RLock
from threading import Thread from threading import Thread

View File

@ -22,7 +22,6 @@ if sys.version > '3':
bord = lambda x: x bord = lambda x: x
import struct import struct
import binascii
from test_framework import bignum from test_framework import bignum

View File

@ -13,7 +13,7 @@ import shutil
import tempfile import tempfile
import traceback import traceback
from .authproxy import AuthServiceProxy, JSONRPCException from .authproxy import JSONRPCException
from .util import assert_equal, check_json_precision, \ from .util import assert_equal, check_json_precision, \
initialize_chain, initialize_chain_clean, \ initialize_chain, initialize_chain_clean, \
start_nodes, connect_nodes_bi, stop_nodes, \ start_nodes, connect_nodes_bi, stop_nodes, \

View File

@ -8,12 +8,12 @@
# #
from test_framework.mininode import CTransaction, NodeConnCB, mininode_lock, msg_ping, \ from test_framework.mininode import CTransaction, NodeConnCB, mininode_lock, msg_ping, \
msg_pong msg_pong
from test_framework.util import fail, hex_str_to_bytes, bytes_to_hex_str from test_framework.util import fail
import io import io
import time import time
from binascii import hexlify, unhexlify from binascii import unhexlify
class TestNode(NodeConnCB): class TestNode(NodeConnCB):

View File

@ -7,7 +7,7 @@ from test_framework.test_framework import BitcoinTestFramework
from test_framework.authproxy import JSONRPCException from test_framework.authproxy import JSONRPCException
from test_framework.util import assert_equal, initialize_chain_clean, \ from test_framework.util import assert_equal, initialize_chain_clean, \
start_node, connect_nodes_bi, sync_blocks, sync_mempools, \ start_node, connect_nodes_bi, sync_blocks, sync_mempools, \
wait_and_assert_operationid_status, get_coinbase_address, fail wait_and_assert_operationid_status, get_coinbase_address
from decimal import Decimal from decimal import Decimal

View File

@ -1,13 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import inspect from wallet_shieldcoinbase import WalletShieldCoinbaseTest
import os
# To keep pyflakes happy
WalletShieldCoinbaseTest = object
cwd = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
exec(open(os.path.join(cwd, 'wallet_shieldcoinbase.py')).read())
class WalletShieldCoinbaseSapling(WalletShieldCoinbaseTest): class WalletShieldCoinbaseSapling(WalletShieldCoinbaseTest):
def __init__(self): def __init__(self):

View File

@ -1,13 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import inspect from wallet_shieldcoinbase import WalletShieldCoinbaseTest
import os
# To keep pyflakes happy
WalletShieldCoinbaseTest = object
cwd = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
exec(open(os.path.join(cwd, 'wallet_shieldcoinbase.py')).read())
class WalletShieldCoinbaseSprout(WalletShieldCoinbaseTest): class WalletShieldCoinbaseSprout(WalletShieldCoinbaseTest):
def __init__(self): def __init__(self):

View File

@ -6,8 +6,7 @@
from decimal import Decimal from decimal import Decimal
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_greater_than, start_nodes,\ from test_framework.util import assert_equal, assert_greater_than, start_nodes,\
initialize_chain_clean, connect_nodes_bi, wait_and_assert_operationid_status, \ initialize_chain_clean, connect_nodes_bi, wait_and_assert_operationid_status
wait_and_assert_operationid_status_result
from functools import reduce from functools import reduce
import logging import logging

View File

@ -8,7 +8,7 @@
# #
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, bytes_to_hex_str, start_nodes, wait_and_assert_operationid_status from test_framework.util import assert_equal, bytes_to_hex_str, start_nodes
import zmq import zmq
import struct import struct