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

Method _save_input

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

Source from the content-addressed store, hash-verified

2202
2203
2204 def _save_input(self, input):
2205 # This method is called from the _communicate_with_*() methods
2206 # so that if we time out while communicating, we can continue
2207 # sending input if we retry.
2208 if self.stdin and self._input is None:
2209 self._input_offset = 0
2210 self._input = input
2211 if input is not None and self.text_mode:
2212 self._input = self._input.encode(self.stdin.encoding,
2213 self.stdin.errors)
2214
2215
2216 def send_signal(self, sig):

Callers 1

_communicateMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected