]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick: on string comparison.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 6 Aug 2013 12:44:18 +0000 (20:44 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 6 Aug 2013 12:44:18 +0000 (20:44 +0800)
script/bootstrap.py
script/update.py

index 54108e41d7c9642237220c244b3693dbc8833641..9067af2f66fcbedc3f4af7fe3d64645923c92a29 100755 (executable)
@@ -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()
index 38c0247078dfcf6edaba468c99e4281a544df8ea..44c01b334560dc1603a98097296e634444b64650 100755 (executable)
@@ -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',