mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
small import clean-up
This commit is contained in:
parent
cd5453e477
commit
1ef804c652
6 changed files with 14 additions and 12 deletions
|
@ -28,11 +28,11 @@ import sys
|
|||
import os
|
||||
|
||||
from .version import ELECTRUM_VERSION
|
||||
from .import constants
|
||||
from . import constants
|
||||
from .i18n import _
|
||||
|
||||
from .util import make_aiohttp_session
|
||||
|
||||
|
||||
class BaseCrashReporter:
|
||||
report_server = "https://crashhub.electrum.org"
|
||||
config_key = "show_crash_reporter"
|
||||
|
|
|
@ -21,11 +21,9 @@
|
|||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
import re
|
||||
|
||||
import dns
|
||||
from dns.exception import DNSException
|
||||
import json
|
||||
import traceback
|
||||
import sys
|
||||
|
||||
from . import bitcoin
|
||||
from . import dnssec
|
||||
|
|
|
@ -23,10 +23,11 @@
|
|||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer, SimpleJSONRPCRequestHandler
|
||||
from base64 import b64decode
|
||||
import time
|
||||
|
||||
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer, SimpleJSONRPCRequestHandler
|
||||
|
||||
from . import util
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
import os
|
||||
import hmac
|
||||
import math
|
||||
import hashlib
|
||||
import unicodedata
|
||||
|
|
|
@ -27,7 +27,7 @@ import os
|
|||
import json
|
||||
from collections import defaultdict
|
||||
import asyncio
|
||||
from typing import Dict, List
|
||||
from typing import Dict, List, Tuple
|
||||
import traceback
|
||||
import sys
|
||||
|
||||
|
@ -64,7 +64,7 @@ class BalanceMonitor(SynchronizerBase):
|
|||
def __init__(self, config, network):
|
||||
SynchronizerBase.__init__(self, network)
|
||||
self.config = config
|
||||
self.expected_payments = defaultdict(list) # type: Dict[str, List[WebSocket, int]]
|
||||
self.expected_payments = defaultdict(list) # type: Dict[str, List[Tuple[WebSocket, int]]]
|
||||
|
||||
def make_request(self, request_id):
|
||||
# read json file
|
||||
|
|
|
@ -22,12 +22,16 @@
|
|||
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
from . import util
|
||||
from .util import profiler, bh2u
|
||||
import ecdsa
|
||||
|
||||
import hashlib
|
||||
import time
|
||||
|
||||
import ecdsa
|
||||
|
||||
from . import util
|
||||
from .util import profiler, bh2u
|
||||
|
||||
|
||||
# algo OIDs
|
||||
ALGO_RSA_SHA1 = '1.2.840.113549.1.1.5'
|
||||
ALGO_RSA_SHA256 = '1.2.840.113549.1.1.11'
|
||||
|
|
Loading…
Add table
Reference in a new issue