]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix pylint warnings
authorCheng Zhao <zcbenz@gmail.com>
Sun, 12 Apr 2015 05:15:11 +0000 (13:15 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 12 Apr 2015 05:15:11 +0000 (13:15 +0800)
script/bootstrap.py

index 2870e75ac11d891c9744faa7716215c1a9288c4d..ba9c0b0b1d9a5058b2e3b5c9114fb4be20a1b021 100755 (executable)
@@ -82,7 +82,9 @@ def bootstrap_brightray(is_dev, url, target_arch):
   execute_stdout([sys.executable, bootstrap] + args)
 
 
-def update_node_modules(dirname, env=os.environ):
+def update_node_modules(dirname, env=None):
+  if env is None:
+    env = os.environ
   with scoped_cwd(dirname):
     if is_verbose_mode():
       execute_stdout([NPM, 'install', '--verbose'], env)