Created
December 15, 2011 09:33
-
-
Save iorionda/1480517 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN subprocess.py subprocess.py.new > subprocess.py.patch | |
--- subprocess.py 2011-12-15 18:32:27.000000000 +0900 | |
+++ subprocess.py.new 2011-12-15 18:33:05.000000000 +0900 | |
@@ -32,7 +32,7 @@ | |
setattr(self, attr, wrapped_pipe) | |
__init__.__doc__ = subprocess_orig.Popen.__init__.__doc__ | |
- def wait(self, check_interval=0.01): | |
+ def wait(self, check_interval=0.01, timeout=None): | |
# Instead of a blocking OS call, this version of wait() uses logic | |
# borrowed from the eventlet 0.2 processes.Process.wait() method. | |
try: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
subprocess.pyのあるディレクトリに移動してから
patch < subprocess.py.patch
を実行する。
quiltってのも便利だよ。