From 44bf4f3c8f28da4a3bf477baa4767ea312646656 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 27 Apr 2021 17:10:04 -0300 Subject: [PATCH] fix if statement from always evaluating a string --- lbry/wallet/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index 525101574..fc40b72bf 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -18,7 +18,7 @@ from .constants import TXO_TYPES, CLAIM_TYPES from .util import date_to_julian_day from concurrent.futures.thread import ThreadPoolExecutor # pylint: disable=wrong-import-order -if platform.system() == 'Windows' or 'ANDROID_ARGUMENT' or 'KIVY_BUILD' in os.environ: +if platform.system() == 'Windows' or ({'ANDROID_ARGUMENT', 'KIVY_BUILD'} & os.environ.keys()): from concurrent.futures.thread import ThreadPoolExecutor as ReaderExecutorClass # pylint: disable=reimported else: from concurrent.futures.process import ProcessPoolExecutor as ReaderExecutorClass