From 8ceaf66a81e7f7609848cce74cdf2675cfd45624 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 29 Oct 2019 08:58:55 -0400 Subject: [PATCH] pylint fixes --- lbry/lbry/extras/daemon/Daemon.py | 6 +++--- lbry/lbry/testcase.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lbry/lbry/extras/daemon/Daemon.py b/lbry/lbry/extras/daemon/Daemon.py index 4bbadaf49..f45f58d7f 100644 --- a/lbry/lbry/extras/daemon/Daemon.py +++ b/lbry/lbry/extras/daemon/Daemon.py @@ -658,7 +658,7 @@ class Daemon(metaclass=JSONRPCServerType): Resolve a name and return the estimated stream cost """ - resolved = await self.resolve(uri) + resolved = await self.resolve([], uri) if resolved: claim_response = resolved[uri] else: @@ -3722,7 +3722,7 @@ class Daemon(metaclass=JSONRPCServerType): if uri or stream_hash or sd_hash: if uri: - metadata = (await self.resolve(uri))[uri] + metadata = (await self.resolve([], uri))[uri] sd_hash = utils.get_sd_hash(metadata) stream_hash = await self.storage.get_stream_hash_for_sd_hash(sd_hash) elif stream_hash: @@ -3961,7 +3961,7 @@ class Daemon(metaclass=JSONRPCServerType): channel_url = comment.get('channel_url') if not channel_url: continue - resolve_response = await self.resolve([channel_url]) + resolve_response = await self.resolve([], [channel_url]) if isinstance(resolve_response[channel_url], Output): comment['is_channel_signature_valid'] = comment_client.is_comment_signed_by_channel( comment, resolve_response[channel_url] diff --git a/lbry/lbry/testcase.py b/lbry/lbry/testcase.py index 847f815c0..4ff7915a7 100644 --- a/lbry/lbry/testcase.py +++ b/lbry/lbry/testcase.py @@ -20,7 +20,7 @@ from lbry.extras.daemon.Components import ( UPNP_COMPONENT, EXCHANGE_RATE_MANAGER_COMPONENT ) from lbry.extras.daemon.ComponentManager import ComponentManager -from lbry.extras.daemon.exchange_rate_manager import ExchangeRateManager as BaseExchangeRateManager, ExchangeRate +from lbry.extras.daemon.exchange_rate_manager import ExchangeRateManager as BaseExchangeRateManager from lbry.extras.daemon.storage import SQLiteStorage from lbry.blob.blob_manager import BlobManager from lbry.stream.reflector.server import ReflectorServer