MCPcopy Index your code
hub / github.com/RustPython/RustPython / _remaining_time

Method _remaining_time

Lib/subprocess.py:1253–1258  ·  view source on GitHub ↗

Convenience for _communicate when computing timeouts.

(self, endtime)

Source from the content-addressed store, hash-verified

1251
1252
1253 def _remaining_time(self, endtime):
1254 """Convenience for _communicate when computing timeouts."""
1255 if endtime is None:
1256 return None
1257 else:
1258 return endtime - _time()
1259
1260
1261 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 1

_timeFunction · 0.90

Tested by

no test coverage detected