From 23c10faff52be89dcbfc29f99dedd059385e4e46 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 19 Dec 2021 17:04:54 -0500 Subject: [PATCH] lint --- lbry/extras/daemon/daemon.py | 1 - lbry/wallet/database.py | 2 +- lbry/wallet/transaction.py | 4 +--- setup.cfg | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index a497a516a..4b1652979 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -8,7 +8,6 @@ import time import inspect import typing import random -import hashlib import tracemalloc from decimal import Decimal from urllib.parse import urlencode, quote diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index d98d42f65..2ddf9a666 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -13,7 +13,7 @@ from datetime import date from prometheus_client import Gauge, Counter, Histogram from lbry.utils import LockWithMetrics -from .bip32 import PublicKey, PrivateKey +from .bip32 import PublicKey from .transaction import Transaction, Output, OutputScript, TXRefImmutable, Input from .constants import TXO_TYPES, CLAIM_TYPES from .util import date_to_julian_day diff --git a/lbry/wallet/transaction.py b/lbry/wallet/transaction.py index 7399ae674..67839aa58 100644 --- a/lbry/wallet/transaction.py +++ b/lbry/wallet/transaction.py @@ -6,8 +6,6 @@ from typing import List, Iterable, Optional, Tuple from coincurve import PublicKey as cPublicKey from coincurve.ecdsa import deserialize_compact, cdata_to_der -from cryptography.hazmat.backends import default_backend -from cryptography.hazmat.primitives.serialization import load_der_public_key from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives.asymmetric.utils import Prehashed @@ -27,7 +25,7 @@ from .constants import COIN, NULL_HASH32 from .bcd_data_stream import BCDataStream from .hash import TXRef, TXRefImmutable from .util import ReadOnlyList -from .bip32 import PrivateKey, PublicKey +from .bip32 import PrivateKey if typing.TYPE_CHECKING: from lbry.wallet.account import Account diff --git a/setup.cfg b/setup.cfg index f387492b2..135551a8e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ ignore=words,server,rpc,schema,winpaths.py,migrator,undecorated.py max-parents=10 max-args=10 max-line-length=120 -good-names=T,t,n,i,j,k,x,y,s,f,d,h,c,e,op,db,tx,io,cachedproperty,log,id,r,iv,ts,l +good-names=T,t,n,i,j,k,x,y,s,f,d,h,c,e,op,db,tx,io,cachedproperty,log,id,r,iv,ts,l,pk valid-metaclass-classmethod-first-arg=mcs disable= c-extension-no-member,