MCPcopy Create free account
hub / github.com/pexpect/pexpect / writelines

Method writelines

pexpect/popen_spawn.py:122–130  ·  view source on GitHub ↗

This calls write() for each element in the sequence. The sequence can be any iterable object producing strings, typically a list of strings. This does not add line separators. There is no return value.

(self, sequence)

Source from the content-addressed store, hash-verified

120 self.send(s)
121
122 def writelines(self, sequence):
123 '''This calls write() for each element in the sequence.
124
125 The sequence can be any iterable object producing strings, typically a
126 list of strings. This does not add line separators. There is no return
127 value.
128 '''
129 for s in sequence:
130 self.send(s)
131
132 def send(self, s):
133 '''Send data to the subprocess' stdin.

Callers

nothing calls this directly

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected