Browse Source

Remove unused Python imports

0.14
practicalswift 8 years ago
parent
commit
95bab821b3
  1. 2
      contrib/devtools/github-merge.py
  2. 1
      contrib/devtools/test-security-check.py
  3. 6
      contrib/linearize/linearize-data.py
  4. 1
      contrib/linearize/linearize-hashes.py
  5. 1
      contrib/zmq/zmq_sub.py
  6. 1
      qa/rpc-tests/nodehandling.py
  7. 1
      qa/rpc-tests/p2p-mempool.py
  8. 3
      qa/rpc-tests/zmq_test.py
  9. 1
      share/qt/extract_strings_qt.py
  10. 1
      src/test/bitcoin-util-test.py

2
contrib/devtools/github-merge.py

@ -15,7 +15,7 @@
# In case of a clean merge that is accepted by the user, the local branch with # In case of a clean merge that is accepted by the user, the local branch with
# name $BRANCH is overwritten with the merged result, and optionally pushed. # name $BRANCH is overwritten with the merged result, and optionally pushed.
from __future__ import division,print_function,unicode_literals from __future__ import division,print_function,unicode_literals
import os,sys import os
from sys import stdin,stdout,stderr from sys import stdin,stdout,stderr
import argparse import argparse
import subprocess import subprocess

1
contrib/devtools/test-security-check.py

@ -7,7 +7,6 @@ Test script for security-check.py
''' '''
from __future__ import division,print_function from __future__ import division,print_function
import subprocess import subprocess
import sys
import unittest import unittest
def write_testcode(filename): def write_testcode(filename):

6
contrib/linearize/linearize-data.py

@ -8,16 +8,10 @@
# #
from __future__ import print_function, division from __future__ import print_function, division
try: # Python 3
import http.client as httplib
except ImportError: # Python 2
import httplib
import json
import struct import struct
import re import re
import os import os
import os.path import os.path
import base64
import sys import sys
import hashlib import hashlib
import datetime import datetime

1
contrib/linearize/linearize-hashes.py

@ -13,7 +13,6 @@ try: # Python 3
except ImportError: # Python 2 except ImportError: # Python 2
import httplib import httplib
import json import json
import struct
import re import re
import base64 import base64
import sys import sys

1
contrib/zmq/zmq_sub.py

@ -3,7 +3,6 @@
# Distributed under the MIT software license, see the accompanying # Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
import array
import binascii import binascii
import zmq import zmq
import struct import struct

1
qa/rpc-tests/nodehandling.py

@ -10,7 +10,6 @@
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import * from test_framework.util import *
import http.client
import urllib.parse import urllib.parse
class NodeHandlingTest (BitcoinTestFramework): class NodeHandlingTest (BitcoinTestFramework):

1
qa/rpc-tests/p2p-mempool.py

@ -6,7 +6,6 @@
from test_framework.mininode import * from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import * from test_framework.util import *
import time
class TestNode(NodeConnCB): class TestNode(NodeConnCB):
def __init__(self): def __init__(self):

3
qa/rpc-tests/zmq_test.py

@ -12,9 +12,6 @@ from test_framework.util import *
import zmq import zmq
import struct import struct
import http.client
import urllib.parse
class ZMQTest (BitcoinTestFramework): class ZMQTest (BitcoinTestFramework):
def __init__(self): def __init__(self):

1
share/qt/extract_strings_qt.py

@ -8,7 +8,6 @@ they can be picked up by Qt linguist.
''' '''
from __future__ import division,print_function,unicode_literals from __future__ import division,print_function,unicode_literals
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
import glob
import operator import operator
import os import os
import sys import sys

1
src/test/bitcoin-util-test.py

@ -5,7 +5,6 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
from __future__ import division,print_function,unicode_literals from __future__ import division,print_function,unicode_literals
import os import os
import sys
import bctest import bctest
import buildenv import buildenv
import argparse import argparse

Loading…
Cancel
Save