From 992c5464babba439003398f57829411793929a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=B0=E0=A5=8B=E0=A4=B9=E0=A4=BF=E0=A4=A4=20=E0=A4=B9?= =?UTF-8?q?=E0=A4=BF=E0=A4=B2?= Date: Mon, 7 Sep 2020 10:58:56 +0530 Subject: [PATCH] Factored statement always executed in conditional (#2121) --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 266d4504..c706e52d 100644 --- a/setup.py +++ b/setup.py @@ -46,14 +46,13 @@ except Exception as e: else: sys.path.append(CURRENT_DIR) from powerline.lib.shell import which + can_use_scripts = True if which('socat') and which('sed') and which('sh'): print('Using powerline.sh script instead of C version (requires socat, sed and sh)') shutil.copyfile('client/powerline.sh', 'scripts/powerline') - can_use_scripts = True else: print('Using powerline.py script instead of C version') shutil.copyfile('client/powerline.py', 'scripts/powerline') - can_use_scripts = True else: can_use_scripts = False