Commit 6db9a88b authored by Denis Bilenko's avatar Denis Bilenko

subprocess: add 'timeout' parameter to wait() in Windows case to avoid raising...

subprocess: add 'timeout' parameter to wait() in Windows case to avoid raising TypeError (timeout is ignored on Windows for now)
parent 448f119f
......@@ -465,10 +465,10 @@ class Popen(object):
self.returncode = GetExitCodeProcess(self._handle)
return self.returncode
def wait(self):
def wait(self, timeout=None):
"""Wait for child process to terminate. Returns returncode
attribute."""
# XXX support timeout argument
# XXX timeout is ignored now
# XXX do not launch more than one WaitForSingleObject
# XXX add 'event' attribute
if self.returncode is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment