From 296feb1a50b1a4708423d6b8c2e022805845fd44 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Aug 2013 20:44:18 +0800 Subject: [PATCH] :lipstick: on string comparison. --- script/bootstrap.py | 2 +- script/update.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index 54108e41d7c9..9067af2f66fc 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -26,7 +26,7 @@ def main(): update_apm() update_node_modules() bootstrap_brightray(args.url) - if sys.platform is 'cygwin': + if sys.platform == 'cygwin': update_win32_python() touch_config_gypi() diff --git a/script/update.py b/script/update.py index 38c0247078df..44c01b334560 100755 --- a/script/update.py +++ b/script/update.py @@ -17,7 +17,7 @@ def main(): def update_frameworks(): - if sys.platform is 'darwin': + if sys.platform == 'darwin': uf = os.path.join('script', 'update-frameworks.py') subprocess.check_call([sys.executable, uf]) @@ -25,7 +25,7 @@ def update_frameworks(): def update_gyp(): gyp = os.path.join('vendor', 'gyp', 'gyp_main.py') python = sys.executable - if sys.platform is 'cygwin': + if sys.platform == 'cygwin': python = os.path.join('vendor', 'python_26', 'python.exe') subprocess.call([python, gyp, '-f', 'ninja', '--depth', '.', 'atom.gyp',