From c1a7332a5ec46b7137dc4752e5366c7c4ae8c7c9 Mon Sep 17 00:00:00 2001 From: sammiee5311 <56215891+sammiee5311@users.noreply.github.com> Date: Mon, 28 Jun 2021 20:02:21 +0900 Subject: [PATCH] Shorten if statement Shorten if statement --- Telegram/configure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/configure.py b/Telegram/configure.py index e42616858..5f4349132 100644 --- a/Telegram/configure.py +++ b/Telegram/configure.py @@ -22,7 +22,7 @@ def error(message): print('[ERROR] ' + message) finish(1) -if sys.platform == 'win32' and not 'COMSPEC' in os.environ: +if sys.platform == 'win32' and 'COMSPEC' not in os.environ: error('COMSPEC environment variable is not set.') executePath = os.getcwd() @@ -39,9 +39,9 @@ if os.path.isfile(officialTargetFile): officialTarget = line.strip() arch = '' -if officialTarget == 'win' or officialTarget == 'uwp': +if officialTarget in ['win', 'uwp']: arch = 'x86' -elif officialTarget == 'win64' or officialTarget == 'uwp64': +elif officialTarget in ['win64', 'uwp64']: arch = 'x64' if officialTarget != '':