Skip to content

Commit

Permalink
Remove unused imports (#831)
Browse files Browse the repository at this point in the history
I've left the internal openhtf imports for now. They can be cleaned up
in a separate patch once I've convinced it won't break anything
unexpected.
  • Loading branch information
sam-bristow authored and arsharma1 committed Oct 23, 2018
1 parent dcc3185 commit 6452f51
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 42 deletions.
2 changes: 0 additions & 2 deletions examples/example_plugs.py
Expand Up @@ -14,8 +14,6 @@

"""Example plugs for OpenHTF."""

import time

import openhtf.plugs as plugs
from openhtf.util import conf

Expand Down
16 changes: 0 additions & 16 deletions openhtf/__init__.py
Expand Up @@ -15,23 +15,8 @@

"""The main OpenHTF entry point."""

import argparse
import collections
import copy
import functools
import inspect
import itertools
import json
import logging
import pkg_resources
import signal
import socket
import sys
import textwrap
import threading
from types import LambdaType
import uuid
import weakref

from openhtf import plugs
from openhtf.core import phase_executor
Expand All @@ -54,7 +39,6 @@
from openhtf.util import functions
from openhtf.util import logs
from openhtf.util import units
import six

# TODO: TestPhase is used for legacy reasons and should be deprecated.
TestPhase = PhaseOptions # pylint: disable=invalid-name
Expand Down
2 changes: 0 additions & 2 deletions openhtf/core/test_executor.py
Expand Up @@ -18,8 +18,6 @@
import sys
import threading

import contextlib2 as contextlib

import openhtf
from openhtf.core import phase_executor
from openhtf.core import phase_group
Expand Down
2 changes: 0 additions & 2 deletions openhtf/output/callbacks/__init__.py
Expand Up @@ -20,13 +20,11 @@
examples.
"""

import base64
import contextlib
try:
import cPickle as pickle
except:
import pickle
import os
import shutil
import tempfile

Expand Down
1 change: 0 additions & 1 deletion openhtf/output/servers/dashboard_server.py
Expand Up @@ -8,7 +8,6 @@
import collections
import json
import logging
import os
import six
import socket
import threading
Expand Down
3 changes: 0 additions & 3 deletions openhtf/output/servers/station_server.py
Expand Up @@ -6,21 +6,18 @@
"""

import contextlib
import hashlib
import itertools
import json
import logging
import os
import re
import six
import socket
import sys
import threading
import time
import types

import sockjs.tornado
import tornado.web

import openhtf
from openhtf.output.callbacks import mfg_inspector
Expand Down
6 changes: 0 additions & 6 deletions openhtf/plugs/__init__.py
Expand Up @@ -95,13 +95,7 @@ def __init__(self, my_config_key)
"""

import collections
import functools
import inspect
import json
import logging
import threading
import time
import types

import mutablerecords

Expand Down
1 change: 0 additions & 1 deletion openhtf/plugs/usb/fastboot_device.py
Expand Up @@ -21,7 +21,6 @@
from openhtf.plugs.usb import fastboot_protocol
from openhtf.plugs.usb import usb_exceptions
from openhtf.util import timeouts
import collections

# From fastboot.c
VENDORS = {0x18D1, 0x0451, 0x0502, 0x0FCE, 0x05C6, 0x22B8, 0x0955,
Expand Down
1 change: 0 additions & 1 deletion openhtf/util/__init__.py
Expand Up @@ -15,7 +15,6 @@

"""One-off utilities."""

import collections
import logging
import re
import threading
Expand Down
1 change: 0 additions & 1 deletion openhtf/util/validators.py
Expand Up @@ -57,7 +57,6 @@ def MyPhase(test):
import abc
import numbers
import re
import sys
from future.utils import with_metaclass
from openhtf import util
import six
Expand Down
1 change: 0 additions & 1 deletion openhtf/util/xmlrpcutil.py
Expand Up @@ -16,7 +16,6 @@

import http.client
import xmlrpc.server
import os
import socketserver
import sys
import threading
Expand Down
1 change: 0 additions & 1 deletion pylint_plugins/conf_plugin.py
Expand Up @@ -16,7 +16,6 @@
import astroid

from astroid import MANAGER
from pylint import lint


def __init__(self):
Expand Down
1 change: 0 additions & 1 deletion pylint_plugins/mutablerecords_plugin.py
Expand Up @@ -16,7 +16,6 @@
import astroid

from astroid import MANAGER
from pylint import lint


def __init__(self):
Expand Down
1 change: 0 additions & 1 deletion test/output/callbacks/callbacks_test.py
Expand Up @@ -20,7 +20,6 @@

import sys
from io import BytesIO, StringIO
import unittest

from examples import all_the_things
import openhtf as htf
Expand Down
1 change: 0 additions & 1 deletion test/plugs/plugs_test.py
Expand Up @@ -15,7 +15,6 @@
import threading
import time

import mock
import openhtf
from openhtf import plugs
from openhtf.util import test
Expand Down
1 change: 0 additions & 1 deletion test/util/data_test.py
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import unittest
import mock

from builtins import int
from openhtf.util import data
Expand Down
1 change: 0 additions & 1 deletion test/util/logs_test.py
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.

import unittest
import time
import mock


Expand Down

0 comments on commit 6452f51

Please sign in to comment.