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

Method sendline

pexpect/fdpexpect.py:108–111  ·  view source on GitHub ↗

Write to fd with trailing newline, return number of bytes written

(self, s)

Source from the content-addressed store, hash-verified

106 return os.write(self.child_fd, b)
107
108 def sendline(self, s):
109 "Write to fd with trailing newline, return number of bytes written"
110 s = self._coerce_send_string(s)
111 return self.send(s + self.linesep)
112
113 def write(self, s):
114 "Write to fd, return None"

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
_coerce_send_stringMethod · 0.80

Tested by

no test coverage detected