mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
style: fix imports
This commit is contained in:
parent
2251b9c16a
commit
1233feb358
@ -21,7 +21,6 @@
|
||||
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import base64
|
||||
import decimal
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
@ -1,4 +1,4 @@
|
||||
from . import messages, tools
|
||||
from . import messages
|
||||
from .tools import CallException, expect, normalize_nfc, session
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@ from copy import deepcopy
|
||||
|
||||
from mnemonic import Mnemonic
|
||||
|
||||
from . import messages as proto, tools, protobuf
|
||||
from . import messages as proto, protobuf, tools
|
||||
from .client import TrezorClient
|
||||
from .tools import expect
|
||||
|
||||
|
@ -14,9 +14,8 @@
|
||||
# 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
|
||||
|
||||
from trezorlib import coins, debuglink, device
|
||||
from trezorlib import debuglink, device
|
||||
from trezorlib.debuglink import TrezorClientDebugLink
|
||||
from trezorlib.messages.PassphraseSourceType import HOST as PASSPHRASE_ON_HOST
|
||||
|
||||
|
@ -17,12 +17,11 @@
|
||||
import pytest
|
||||
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.coins import tx_api
|
||||
from trezorlib.tools import H_, CallException, parse_path, btc_hash
|
||||
from trezorlib.tools import H_, CallException, btc_hash, parse_path
|
||||
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .common import TrezorTest
|
||||
from .conftest import TREZOR_VERSION
|
||||
from ..support.tx_cache import tx_cache
|
||||
|
||||
TXHASH_157041 = bytes.fromhex(
|
||||
"1570416eb4302cf52979afd5e6909e37d8fdd874301f7cc87e547e509cb1caa6"
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from trezorlib import btc, coins, messages as proto
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.tools import H_, CallException, parse_path
|
||||
|
||||
from ..support.ckd_public import deserialize
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from trezorlib import btc, coins, messages as proto
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.tools import H_, CallException, parse_path
|
||||
|
||||
from ..support.ckd_public import deserialize
|
||||
|
@ -19,8 +19,8 @@ import pytest
|
||||
from trezorlib import btc, messages
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from .conftest import setup_client
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .conftest import setup_client
|
||||
|
||||
TXHASH_3bf506 = bytes.fromhex(
|
||||
"3bf506c81ce84eda891679ddc797d162c17c60b15d6c0ac23be5e31369e7235f"
|
||||
|
@ -19,8 +19,8 @@ import pytest
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from .common import TrezorTest
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .common import TrezorTest
|
||||
|
||||
TX_API = tx_cache("Decred Testnet")
|
||||
|
||||
|
@ -16,11 +16,11 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from trezorlib import btc, coins, messages as proto
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from .common import TrezorTest
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .common import TrezorTest
|
||||
|
||||
TX_API = tx_cache("Zcash Testnet")
|
||||
|
||||
|
@ -19,11 +19,10 @@ import pytest
|
||||
from trezorlib import btc, messages as proto
|
||||
from trezorlib.tools import CallException
|
||||
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .common import TrezorTest
|
||||
from .conftest import TREZOR_VERSION
|
||||
|
||||
from ..support.tx_cache import tx_cache
|
||||
|
||||
TX_API = tx_cache("Bitcoin")
|
||||
|
||||
TXHASH_d5f65e = bytes.fromhex(
|
||||
|
@ -16,9 +16,8 @@
|
||||
|
||||
from trezorlib import btc, messages as proto
|
||||
|
||||
from .common import TrezorTest
|
||||
|
||||
from ..support.tx_cache import tx_cache
|
||||
from .common import TrezorTest
|
||||
|
||||
TXHASH_d5f65e = bytes.fromhex(
|
||||
"d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882"
|
||||
|
@ -14,10 +14,8 @@
|
||||
# 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 json
|
||||
from decimal import Decimal
|
||||
import random
|
||||
from typing import Mapping, Any
|
||||
from decimal import Decimal
|
||||
|
||||
import requests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user