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

Method _save_input

Lib/subprocess.py:2345–2354  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

2343
2344
2345 def _save_input(self, input):
2346 # This method is called from the _communicate_with_*() methods
2347 # so that if we time out while communicating, we can continue
2348 # sending input if we retry.
2349 if self.stdin and self._input is None:
2350 self._input_offset = 0
2351 self._input = input
2352 if input is not None and self.text_mode:
2353 self._input = self._input.encode(self.stdin.encoding,
2354 self.stdin.errors)
2355
2356
2357 def send_signal(self, sig):

Callers 1

_communicateMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected