diff --git a/lbrynet/daemon/ComponentManager.py b/lbrynet/daemon/ComponentManager.py index 4f2969517..62228964a 100644 --- a/lbrynet/daemon/ComponentManager.py +++ b/lbrynet/daemon/ComponentManager.py @@ -6,7 +6,7 @@ from lbrynet.core.Error import ComponentStartConditionNotMet log = logging.getLogger(__name__) -class RegisteredConditions(object): +class RegisteredConditions: conditions = {} @@ -30,7 +30,7 @@ class RequiredCondition(metaclass=RequiredConditionType): raise NotImplementedError() -class ComponentManager(object): +class ComponentManager: default_component_classes = {} def __init__(self, reactor=None, analytics_manager=None, skip_components=None, **override_components): diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index b0a3afa50..806b76f40 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -5,7 +5,6 @@ import requests import urllib import json import textwrap -import signal from binascii import hexlify, unhexlify from copy import deepcopy from decimal import Decimal, InvalidOperation diff --git a/lbrynet/daemon/DaemonConsole.py b/lbrynet/daemon/DaemonConsole.py index ede22425f..7f196af0e 100644 --- a/lbrynet/daemon/DaemonConsole.py +++ b/lbrynet/daemon/DaemonConsole.py @@ -1,10 +1,7 @@ -# -*- coding: utf-8 -*- - import sys import code import argparse import logging.handlers -from exceptions import SystemExit from twisted.internet import defer, reactor, threads from lbrynet import analytics from lbrynet import conf diff --git a/lbrynet/daemon/DaemonControl.py b/lbrynet/daemon/DaemonControl.py index f83c63d62..5e36e5343 100644 --- a/lbrynet/daemon/DaemonControl.py +++ b/lbrynet/daemon/DaemonControl.py @@ -12,7 +12,7 @@ from lbrynet.core import log_support import argparse import logging.handlers -from twisted.internet import defer, reactor +from twisted.internet import reactor #from jsonrpc.proxy import JSONRPCProxy from lbrynet import conf diff --git a/lbrynet/dht/protocol.py b/lbrynet/dht/protocol.py index d52baad04..341be18b9 100644 --- a/lbrynet/dht/protocol.py +++ b/lbrynet/dht/protocol.py @@ -1,5 +1,4 @@ import logging -import socket import errno from binascii import hexlify from collections import deque