From 052ef732265e053b03fed374fae69aa5cb9585c5 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 21 Sep 2020 22:17:45 -0400 Subject: [PATCH] pylint --- lbry/blockchain/sync/blocks.py | 2 +- tests/integration/blockchain/test_blockchain.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/blockchain/sync/blocks.py b/lbry/blockchain/sync/blocks.py index b028e7ba1..f42c95009 100644 --- a/lbry/blockchain/sync/blocks.py +++ b/lbry/blockchain/sync/blocks.py @@ -254,7 +254,7 @@ def get_block_range_without_filters() -> Tuple[int, int]: .select_from( BlockTable.join(BlockFilter, BlockTable.c.height == BlockFilter.c.height, isouter=True) ) - .where(BlockFilter.c.height == None) + .where(BlockFilter.c.height.is_(None)) ) result = context().fetchone(sql) return result['start_height'], result['end_height'] diff --git a/tests/integration/blockchain/test_blockchain.py b/tests/integration/blockchain/test_blockchain.py index f3a512f47..747ce58a4 100644 --- a/tests/integration/blockchain/test_blockchain.py +++ b/tests/integration/blockchain/test_blockchain.py @@ -4,7 +4,7 @@ import asyncio import tempfile from unittest import skip from binascii import hexlify, unhexlify -from typing import List, Optional, Iterable +from typing import List, Optional from distutils.dir_util import copy_tree, remove_tree from lbry import Config, Database, RegTestLedger, Transaction, Output, Input