Browse Source

(trivial) fix some import orders

1. stdlib
2. 3rd-party
3. internal

(as in PEP-8)
master
SomberNight 2 years ago
parent
commit
90136f0de5
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 20
      electrum/descriptor.py
  2. 3
      electrum/lnrouter.py

20
electrum/descriptor.py

@ -14,18 +14,8 @@
# TODO impl ADDR descriptors # TODO impl ADDR descriptors
# TODO impl RAW descriptors # TODO impl RAW descriptors
import enum
from .bip32 import convert_bip32_strpath_to_intpath, BIP32Node, KeyOriginInfo, BIP32_PRIME
from . import bitcoin
from .bitcoin import construct_script, opcodes, construct_witness
from . import constants
from .crypto import hash_160, sha256
from . import ecc
from . import segwit_addr
from .util import bfh
from binascii import unhexlify from binascii import unhexlify
import enum
from enum import Enum from enum import Enum
from typing import ( from typing import (
List, List,
@ -37,6 +27,14 @@ from typing import (
Set, Set,
) )
from .bip32 import convert_bip32_strpath_to_intpath, BIP32Node, KeyOriginInfo, BIP32_PRIME
from . import bitcoin
from .bitcoin import construct_script, opcodes, construct_witness
from . import constants
from .crypto import hash_160, sha256
from . import ecc
from . import segwit_addr
MAX_TAPROOT_NODES = 128 MAX_TAPROOT_NODES = 128

3
electrum/lnrouter.py

@ -29,9 +29,10 @@ from typing import Sequence, Tuple, Optional, Dict, TYPE_CHECKING, Set
import time import time
import threading import threading
from threading import RLock from threading import RLock
import attr
from math import inf from math import inf
import attr
from .util import profiler, with_lock from .util import profiler, with_lock
from .logging import Logger from .logging import Logger
from .lnutil import (NUM_MAX_EDGES_IN_PAYMENT_PATH, ShortChannelID, LnFeatures, from .lnutil import (NUM_MAX_EDGES_IN_PAYMENT_PATH, ShortChannelID, LnFeatures,

Loading…
Cancel
Save