: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 54108e4..9067af2 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 38c0247..44c01b3 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',