Commits

Denis Bilenko  committed 40fe0fb

subprocess: add 'timeout' parameter to wait() in Windows case to avoid raising TypeError (timeout is ignored on Windows for now)

  • Participants
  • Parent commits 7f5de3b

Comments (0)

Files changed (1)

File gevent/subprocess.py

                     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: