pylint fixes

This commit is contained in:
Lex Berezhny 2018-08-16 11:24:22 -04:00 committed by Jack Robison
parent d1f00255c1
commit cbc98e72a7
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
4 changed files with 2 additions and 6 deletions

View file

@ -4,7 +4,6 @@ import json
import inspect import inspect
import signal import signal
from decimal import Decimal
from functools import wraps from functools import wraps
from twisted.web import server from twisted.web import server
from twisted.internet import defer from twisted.internet import defer

View file

@ -2,7 +2,7 @@ from decimal import Decimal
from binascii import hexlify from binascii import hexlify
from datetime import datetime from datetime import datetime
from json import JSONEncoder from json import JSONEncoder
from wallet.transaction import Transaction, Output from lbrynet.wallet.transaction import Transaction, Output
class JSONResponseEncoder(JSONEncoder): class JSONResponseEncoder(JSONEncoder):
@ -11,7 +11,7 @@ class JSONResponseEncoder(JSONEncoder):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.ledger = ledger self.ledger = ledger
def default(self, obj): def default(self, obj): # pylint: disable=method-hidden
if isinstance(obj, Transaction): if isinstance(obj, Transaction):
return self.encode_transaction(obj) return self.encode_transaction(obj)
if isinstance(obj, Output): if isinstance(obj, Output):

View file

@ -1,5 +1,4 @@
import logging import logging
import struct
from six import int2byte from six import int2byte
from binascii import unhexlify from binascii import unhexlify

View file

@ -5,8 +5,6 @@ from twisted.internet import defer
from torba.basemanager import BaseWalletManager from torba.basemanager import BaseWalletManager
from lbryschema.uri import parse_lbry_uri
from lbryschema.error import URIParseError
from lbryschema.claim import ClaimDict from lbryschema.claim import ClaimDict
from .ledger import MainNetLedger from .ledger import MainNetLedger