1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-27 08:38:07 +00:00

style: remove unused imports with autoflake

This commit is contained in:
matejcik 2018-08-10 15:48:39 +02:00
parent ca608d0a98
commit 5259146a0b
21 changed files with 5 additions and 27 deletions

View File

@ -26,7 +26,6 @@ import click
import hashlib import hashlib
import io import io
import json import json
import logging
import os import os
import sys import sys

View File

@ -20,8 +20,6 @@ import os
import sys import sys
import time import time
import binascii import binascii
import hashlib
import unicodedata
import getpass import getpass
import warnings import warnings

View File

@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import sys
from functools import reduce from functools import reduce
import binascii import binascii
from typing import Iterable, Tuple from typing import Iterable, Tuple

View File

@ -14,13 +14,11 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import binascii
import os import os
import warnings import warnings
from mnemonic import Mnemonic from mnemonic import Mnemonic
from . import messages as proto from . import messages as proto
from . import tools
from .tools import expect, session from .tools import expect, session
from .transport import enumerate_devices, get_transport from .transport import enumerate_devices, get_transport

View File

@ -1,6 +1,5 @@
import binascii import binascii
import construct as c import construct as c
import hashlib
import pyblake2 import pyblake2
from . import cosi from . import cosi

View File

@ -15,7 +15,7 @@
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import logging import logging
from typing import Set, Type, Optional from typing import Optional
from . import protobuf from . import protobuf

View File

@ -15,7 +15,6 @@
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
from . import messages from . import messages
from . import protobuf
map_type_to_class = {} map_type_to_class = {}
map_class_to_type = {} map_class_to_type = {}

View File

@ -19,7 +19,7 @@ from __future__ import absolute_import
from io import BytesIO from io import BytesIO
import logging import logging
import struct import struct
from typing import Tuple, Type from typing import Tuple
from . import mapping from . import mapping
from . import protobuf from . import protobuf

View File

@ -14,8 +14,6 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import base64
import struct
from . import messages from . import messages
from .tools import expect from .tools import expect

View File

@ -18,7 +18,6 @@ from binascii import unhexlify, hexlify
import pytest import pytest
from .common import TrezorTest from .common import TrezorTest
from trezorlib import messages as proto
from trezorlib import ethereum from trezorlib import ethereum
from trezorlib.tools import H_ from trezorlib.tools import H_

View File

@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import pytest
from .common import TrezorTest from .common import TrezorTest
from ..support import ckd_public as bip32 from ..support import ckd_public as bip32

View File

@ -18,9 +18,8 @@ import pytest
from .common import TrezorTest from .common import TrezorTest
from .conftest import TREZOR_VERSION from .conftest import TREZOR_VERSION
from binascii import hexlify
from trezorlib.ripple import get_address from trezorlib.ripple import get_address
from trezorlib.tools import parse_path, CallException from trezorlib.tools import parse_path
from trezorlib import debuglink from trezorlib import debuglink

View File

@ -18,7 +18,6 @@ import pytest
from .common import TrezorTest from .common import TrezorTest
from .conftest import TREZOR_VERSION from .conftest import TREZOR_VERSION
from binascii import hexlify
from trezorlib import stellar from trezorlib import stellar
from trezorlib import messages as proto from trezorlib import messages as proto
from trezorlib.tools import parse_path, CallException from trezorlib.tools import parse_path, CallException

View File

@ -48,8 +48,7 @@
from base64 import b64encode from base64 import b64encode
from .common import TrezorTest from .common import TrezorTest
from .conftest import TREZOR_VERSION from binascii import hexlify
from binascii import hexlify, unhexlify
from trezorlib import messages as proto from trezorlib import messages as proto
from trezorlib import stellar from trezorlib import stellar
from trezorlib.tools import parse_path from trezorlib.tools import parse_path

View File

@ -20,7 +20,6 @@ import pytest
from .common import TrezorTest from .common import TrezorTest
from trezorlib import messages as proto from trezorlib import messages as proto
from trezorlib.client import PinException from trezorlib.client import PinException
from trezorlib.tools import CallException
# FIXME TODO Add passphrase tests # FIXME TODO Add passphrase tests

View File

@ -17,7 +17,6 @@
import struct import struct
import hmac import hmac
import hashlib import hashlib
import sys
import ecdsa import ecdsa
from ecdsa.util import string_to_number, number_to_string from ecdsa.util import string_to_number, number_to_string

View File

@ -17,7 +17,7 @@
import importlib import importlib
import logging import logging
from typing import Iterable, Type, List, Set from typing import Iterable, Type
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -21,7 +21,6 @@ from io import BytesIO
import struct import struct
from .. import mapping from .. import mapping
from .. import messages
from .. import protobuf from .. import protobuf
from . import Transport, TransportException from . import Transport, TransportException

View File

@ -16,7 +16,6 @@
import time import time
import hid import hid
import os
import sys import sys
from ..protocol_v1 import ProtocolV1 from ..protocol_v1 import ProtocolV1

View File

@ -14,11 +14,9 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import os
import socket import socket
from ..protocol_v1 import ProtocolV1 from ..protocol_v1 import ProtocolV1
from ..protocol_v2 import ProtocolV2
from . import Transport, TransportException from . import Transport, TransportException

View File

@ -15,7 +15,6 @@
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import time import time
import os
import atexit import atexit
import usb1 import usb1
import sys import sys