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:
parent
ca608d0a98
commit
5259146a0b
@ -26,7 +26,6 @@ import click
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
@ -20,8 +20,6 @@ import os
|
||||
import sys
|
||||
import time
|
||||
import binascii
|
||||
import hashlib
|
||||
import unicodedata
|
||||
import getpass
|
||||
import warnings
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
# 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>.
|
||||
|
||||
import sys
|
||||
from functools import reduce
|
||||
import binascii
|
||||
from typing import Iterable, Tuple
|
||||
|
@ -14,13 +14,11 @@
|
||||
# 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>.
|
||||
|
||||
import binascii
|
||||
import os
|
||||
import warnings
|
||||
from mnemonic import Mnemonic
|
||||
|
||||
from . import messages as proto
|
||||
from . import tools
|
||||
from .tools import expect, session
|
||||
|
||||
from .transport import enumerate_devices, get_transport
|
||||
|
@ -1,6 +1,5 @@
|
||||
import binascii
|
||||
import construct as c
|
||||
import hashlib
|
||||
import pyblake2
|
||||
|
||||
from . import cosi
|
||||
|
@ -15,7 +15,7 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
import logging
|
||||
from typing import Set, Type, Optional
|
||||
from typing import Optional
|
||||
|
||||
from . import protobuf
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
from . import messages
|
||||
from . import protobuf
|
||||
|
||||
map_type_to_class = {}
|
||||
map_class_to_type = {}
|
||||
|
@ -19,7 +19,7 @@ from __future__ import absolute_import
|
||||
from io import BytesIO
|
||||
import logging
|
||||
import struct
|
||||
from typing import Tuple, Type
|
||||
from typing import Tuple
|
||||
|
||||
from . import mapping
|
||||
from . import protobuf
|
||||
|
@ -14,8 +14,6 @@
|
||||
# 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>.
|
||||
|
||||
import base64
|
||||
import struct
|
||||
|
||||
from . import messages
|
||||
from .tools import expect
|
||||
|
@ -18,7 +18,6 @@ from binascii import unhexlify, hexlify
|
||||
import pytest
|
||||
|
||||
from .common import TrezorTest
|
||||
from trezorlib import messages as proto
|
||||
from trezorlib import ethereum
|
||||
from trezorlib.tools import H_
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
# 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>.
|
||||
|
||||
import pytest
|
||||
|
||||
from .common import TrezorTest
|
||||
from ..support import ckd_public as bip32
|
||||
|
@ -18,9 +18,8 @@ import pytest
|
||||
|
||||
from .common import TrezorTest
|
||||
from .conftest import TREZOR_VERSION
|
||||
from binascii import hexlify
|
||||
from trezorlib.ripple import get_address
|
||||
from trezorlib.tools import parse_path, CallException
|
||||
from trezorlib.tools import parse_path
|
||||
from trezorlib import debuglink
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@ import pytest
|
||||
|
||||
from .common import TrezorTest
|
||||
from .conftest import TREZOR_VERSION
|
||||
from binascii import hexlify
|
||||
from trezorlib import stellar
|
||||
from trezorlib import messages as proto
|
||||
from trezorlib.tools import parse_path, CallException
|
||||
|
@ -48,8 +48,7 @@
|
||||
|
||||
from base64 import b64encode
|
||||
from .common import TrezorTest
|
||||
from .conftest import TREZOR_VERSION
|
||||
from binascii import hexlify, unhexlify
|
||||
from binascii import hexlify
|
||||
from trezorlib import messages as proto
|
||||
from trezorlib import stellar
|
||||
from trezorlib.tools import parse_path
|
||||
|
@ -20,7 +20,6 @@ import pytest
|
||||
from .common import TrezorTest
|
||||
from trezorlib import messages as proto
|
||||
from trezorlib.client import PinException
|
||||
from trezorlib.tools import CallException
|
||||
|
||||
|
||||
# FIXME TODO Add passphrase tests
|
||||
|
@ -17,7 +17,6 @@
|
||||
import struct
|
||||
import hmac
|
||||
import hashlib
|
||||
import sys
|
||||
|
||||
import ecdsa
|
||||
from ecdsa.util import string_to_number, number_to_string
|
||||
|
@ -17,7 +17,7 @@
|
||||
import importlib
|
||||
import logging
|
||||
|
||||
from typing import Iterable, Type, List, Set
|
||||
from typing import Iterable, Type
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
@ -21,7 +21,6 @@ from io import BytesIO
|
||||
import struct
|
||||
|
||||
from .. import mapping
|
||||
from .. import messages
|
||||
from .. import protobuf
|
||||
from . import Transport, TransportException
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
import time
|
||||
import hid
|
||||
import os
|
||||
import sys
|
||||
|
||||
from ..protocol_v1 import ProtocolV1
|
||||
|
@ -14,11 +14,9 @@
|
||||
# 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>.
|
||||
|
||||
import os
|
||||
import socket
|
||||
|
||||
from ..protocol_v1 import ProtocolV1
|
||||
from ..protocol_v2 import ProtocolV2
|
||||
from . import Transport, TransportException
|
||||
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||
|
||||
import time
|
||||
import os
|
||||
import atexit
|
||||
import usb1
|
||||
import sys
|
||||
|
Loading…
Reference in New Issue
Block a user