diff options
Diffstat (limited to 'modules/language/python/module/subprocess.py')
-rw-r--r-- | modules/language/python/module/subprocess.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/language/python/module/subprocess.py b/modules/language/python/module/subprocess.py index 0d8ee7e..d4dd259 100644 --- a/modules/language/python/module/subprocess.py +++ b/modules/language/python/module/subprocess.py @@ -86,7 +86,6 @@ class CalledProcessError(SubprocessError): # .stdout is a transparent alias for .output self.output = value - class TimeoutExpired(SubprocessError): """This exception is raised when the timeout expires while waiting for a child process. @@ -133,12 +132,12 @@ else: import threading except ImportError: import dummy_threading as threading - + pk(1) # When select or poll has indicated that the file is writable, # we can write up to _PIPE_BUF bytes without risk of blocking. # POSIX defines PIPE_BUF as >= 512. _PIPE_BUF = getattr(select, 'PIPE_BUF', 512) - + pk(2) # poll/select have the advantage of not requiring any extra file # descriptor, contrarily to epoll/kqueue (also, they require a single # syscall). |