From 457dd86aadfb0e7d841fb237f9b0819eaad5a280 Mon Sep 17 00:00:00 2001 From: bargst Date: Sat, 30 Jun 2018 19:15:10 +0200 Subject: [PATCH] Fix incorrectly sorted imports. --- eth_account/signers/ledger.py | 31 +++++++++++-------------- tests/integration/ledger/test_ledger.py | 10 ++++---- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/eth_account/signers/ledger.py b/eth_account/signers/ledger.py index 10c1bac6..7bf185b0 100644 --- a/eth_account/signers/ledger.py +++ b/eth_account/signers/ledger.py @@ -1,40 +1,35 @@ -import hid import itertools import logging import struct import time import eth_utils +from eth_utils import ( + to_bytes, + to_hex, +) +from eth_utils.curried import ( + keccak, +) +from hexbytes import ( + HexBytes, +) import rlp -from hexbytes import HexBytes - from eth_account import ( Account, ) - from eth_account.datastructures import ( AttributeDict, ) - -from eth_account.signers.base import ( - BaseAccount, -) - from eth_account.internal.transactions import ( encode_transaction, serializable_unsigned_transaction_from_dict, ) - -from eth_utils import ( - to_bytes, - to_hex, -) - -from eth_utils.curried import ( - keccak, +from eth_account.signers.base import ( + BaseAccount, ) - +import hid ETH_DERIVATION_PATH_PREFIX = "m/44'/60'/0'/" diff --git a/tests/integration/ledger/test_ledger.py b/tests/integration/ledger/test_ledger.py index c0f66bb3..a37402c3 100644 --- a/tests/integration/ledger/test_ledger.py +++ b/tests/integration/ledger/test_ledger.py @@ -2,19 +2,17 @@ import pytest +from hexbytes import ( + HexBytes, +) + from eth_account import ( Account, ) - from eth_account.signers.ledger import ( LedgerAccount, ) -from hexbytes import ( - HexBytes, -) - - # Not a fixture because it does not support multiple LedgerAccount ledger = LedgerAccount()