MCPcopy Index your code
hub / github.com/python/cpython / _remaining_time

Method _remaining_time

Lib/subprocess.py:1307–1312  ·  view source on GitHub ↗

Convenience for _communicate when computing timeouts.

(self, endtime)

Source from the content-addressed store, hash-verified

1305
1306
1307 def _remaining_time(self, endtime):
1308 """Convenience for _communicate when computing timeouts."""
1309 if endtime is None:
1310 return None
1311 else:
1312 return endtime - _time()
1313
1314
1315 def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq,

Callers 4

communicateMethod · 0.95
waitMethod · 0.95
_communicateMethod · 0.95
_waitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected