diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2012-11-13 08:00:32 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2012-11-13 08:00:32 +0200 |
commit | 075317782e3195382741d0bc22ff314235cfeeda (patch) | |
tree | 9782693f7f7ab21410e2ba84287630f7adf46c3f | |
parent | 5e76172841bd1833c6289efb6723aa9fef26b516 (diff) |
Rename CallProcess to call_process.
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index 1c3dbfb4..6b263fbd 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -13,7 +13,7 @@ class MockPopen: # On Windows python suffers from a particularly nasty bug if python is spawning new processes while python itself is spawned from some other non-console process. # Use a custom replacement for Popen on Windows to avoid the "WindowsError: [Error 6] The handle is invalid" errors when emcc is driven through cmake or mingw32-make. # See http://bugs.python.org/issue3905 -def CallProcess(args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, +def call_process(args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0): # (stdin, stdout, stderr) store what the caller originally wanted to be done with the streams. # (stdin_, stdout_, stderr_) will store the fixed set of streams that workaround the bug. @@ -52,7 +52,7 @@ def CallProcess(args, bufsize=0, executable=None, stdin=None, stdout=None, stder # Install our replacement Popen handler if we are running on Windows to avoid python spawn process function. if os.name == 'nt': - Popen = CallProcess + Popen = call_process import js_optimizer |