small import clean-up

This commit is contained in:
SomberNight 2018-10-11 16:30:30 +02:00
parent cd5453e477
commit 1ef804c652
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
6 changed files with 14 additions and 12 deletions

View file

@ -28,11 +28,11 @@ import sys
import os import os
from .version import ELECTRUM_VERSION from .version import ELECTRUM_VERSION
from .import constants from . import constants
from .i18n import _ from .i18n import _
from .util import make_aiohttp_session from .util import make_aiohttp_session
class BaseCrashReporter: class BaseCrashReporter:
report_server = "https://crashhub.electrum.org" report_server = "https://crashhub.electrum.org"
config_key = "show_crash_reporter" config_key = "show_crash_reporter"

View file

@ -21,11 +21,9 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
import re import re
import dns import dns
from dns.exception import DNSException from dns.exception import DNSException
import json
import traceback
import sys
from . import bitcoin from . import bitcoin
from . import dnssec from . import dnssec

View file

@ -23,10 +23,11 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer, SimpleJSONRPCRequestHandler
from base64 import b64decode from base64 import b64decode
import time import time
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer, SimpleJSONRPCRequestHandler
from . import util from . import util

View file

@ -23,7 +23,6 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
import os import os
import hmac
import math import math
import hashlib import hashlib
import unicodedata import unicodedata

View file

@ -27,7 +27,7 @@ import os
import json import json
from collections import defaultdict from collections import defaultdict
import asyncio import asyncio
from typing import Dict, List from typing import Dict, List, Tuple
import traceback import traceback
import sys import sys
@ -64,7 +64,7 @@ class BalanceMonitor(SynchronizerBase):
def __init__(self, config, network): def __init__(self, config, network):
SynchronizerBase.__init__(self, network) SynchronizerBase.__init__(self, network)
self.config = config 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): def make_request(self, request_id):
# read json file # read json file

View file

@ -22,12 +22,16 @@
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
from . import util
from .util import profiler, bh2u
import ecdsa
import hashlib import hashlib
import time import time
import ecdsa
from . import util
from .util import profiler, bh2u
# algo OIDs # algo OIDs
ALGO_RSA_SHA1 = '1.2.840.113549.1.1.5' ALGO_RSA_SHA1 = '1.2.840.113549.1.1.5'
ALGO_RSA_SHA256 = '1.2.840.113549.1.1.11' ALGO_RSA_SHA256 = '1.2.840.113549.1.1.11'