MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _popen_wait

Function _popen_wait

pymongo/daemon.py:34–40  ·  view source on GitHub ↗

Implement wait timeout support for Python 3.

(popen: subprocess.Popen[Any], timeout: Optional[float])

Source from the content-addressed store, hash-verified

32
33
34def _popen_wait(popen: subprocess.Popen[Any], timeout: Optional[float]) -> Optional[int]:
35 """Implement wait timeout support for Python 3."""
36 try:
37 return popen.wait(timeout=timeout)
38 except subprocess.TimeoutExpired:
39 # Silence TimeoutExpired errors.
40 return None
41
42
43def _silence_resource_warning(popen: Optional[subprocess.Popen[Any]]) -> None:

Callers 1

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected