From 6690e63ea4f18d7b0018f289f20e58cc49c0f17c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 10 Sep 2020 18:13:08 -0300 Subject: [PATCH] remove commented code and unused import --- lbry/db/queries/resolve.py | 6 ------ lbry/schema/result.py | 1 - tests/integration/blockchain/test_blockchain.py | 1 - 3 files changed, 8 deletions(-) diff --git a/lbry/db/queries/resolve.py b/lbry/db/queries/resolve.py index ba45eb5bb..7221bf15e 100644 --- a/lbry/db/queries/resolve.py +++ b/lbry/db/queries/resolve.py @@ -49,12 +49,6 @@ def protobuf_resolve(urls, **kwargs) -> str: def resolve(urls, **kwargs) -> Dict[str, Output]: return {url: resolve_url(url) for url in urls} - #txo_rows = [resolve_url(raw_url) for raw_url in urls] - #extra_txo_rows = _get_referenced_rows( - # [txo for txo in txo_rows if isinstance(txo, dict)], - # [txo.censor_hash for txo in txo_rows if isinstance(txo, ResolveCensoredError)] - #) - #return txo_rows, extra_txo_rows def resolve_url(raw_url): diff --git a/lbry/schema/result.py b/lbry/schema/result.py index ebdd404a2..5f4519c72 100644 --- a/lbry/schema/result.py +++ b/lbry/schema/result.py @@ -1,7 +1,6 @@ import base64 import struct from typing import List -from binascii import hexlify from itertools import chain from lbry.error import ResolveCensoredError diff --git a/tests/integration/blockchain/test_blockchain.py b/tests/integration/blockchain/test_blockchain.py index 9e74fa642..f991cc1a5 100644 --- a/tests/integration/blockchain/test_blockchain.py +++ b/tests/integration/blockchain/test_blockchain.py @@ -899,7 +899,6 @@ class TestGeneralBlockchainSync(SyncingBlockchainTestCase): self.assertEqual(stream_cd.claim_id, await self.resolve_to_claim_id("@foo#ab/foo#cd")) async def test_resolve_protobuf_includes_enough_information_for_signature_validation(self): - # important for old sdk chan_ab = await self.get_claim( await self.create_claim(claim_id_startswith='ab', is_channel=True)) await self.create_claim(claim_id_startswith='cd', sign=chan_ab)