From cbc98e72a79c0fa67ac1367428b87590caaceb05 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 16 Aug 2018 11:24:22 -0400 Subject: [PATCH] pylint fixes --- lbrynet/daemon/auth/server.py | 1 - lbrynet/daemon/json_response_encoder.py | 4 ++-- lbrynet/wallet/ledger.py | 1 - lbrynet/wallet/manager.py | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lbrynet/daemon/auth/server.py b/lbrynet/daemon/auth/server.py index a012b5107..018adf91f 100644 --- a/lbrynet/daemon/auth/server.py +++ b/lbrynet/daemon/auth/server.py @@ -4,7 +4,6 @@ import json import inspect import signal -from decimal import Decimal from functools import wraps from twisted.web import server from twisted.internet import defer diff --git a/lbrynet/daemon/json_response_encoder.py b/lbrynet/daemon/json_response_encoder.py index 622b60fa9..4f66b16e3 100644 --- a/lbrynet/daemon/json_response_encoder.py +++ b/lbrynet/daemon/json_response_encoder.py @@ -2,7 +2,7 @@ from decimal import Decimal from binascii import hexlify from datetime import datetime from json import JSONEncoder -from wallet.transaction import Transaction, Output +from lbrynet.wallet.transaction import Transaction, Output class JSONResponseEncoder(JSONEncoder): @@ -11,7 +11,7 @@ class JSONResponseEncoder(JSONEncoder): super().__init__(*args, **kwargs) self.ledger = ledger - def default(self, obj): + def default(self, obj): # pylint: disable=method-hidden if isinstance(obj, Transaction): return self.encode_transaction(obj) if isinstance(obj, Output): diff --git a/lbrynet/wallet/ledger.py b/lbrynet/wallet/ledger.py index a7a44094b..b29ade9a3 100644 --- a/lbrynet/wallet/ledger.py +++ b/lbrynet/wallet/ledger.py @@ -1,5 +1,4 @@ import logging -import struct from six import int2byte from binascii import unhexlify diff --git a/lbrynet/wallet/manager.py b/lbrynet/wallet/manager.py index 4101586ba..2b8c0eb40 100644 --- a/lbrynet/wallet/manager.py +++ b/lbrynet/wallet/manager.py @@ -5,8 +5,6 @@ from twisted.internet import defer from torba.basemanager import BaseWalletManager -from lbryschema.uri import parse_lbry_uri -from lbryschema.error import URIParseError from lbryschema.claim import ClaimDict from .ledger import MainNetLedger