pylint fixes
This commit is contained in:
parent
d1f00255c1
commit
cbc98e72a7
4 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import logging
|
||||
import struct
|
||||
|
||||
from six import int2byte
|
||||
from binascii import unhexlify
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue