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

Method sendline

pexpect/socket_pexpect.py:96–99  ·  view source on GitHub ↗

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

(self, s)

Source from the content-addressed store, hash-verified

94 return len(b)
95
96 def sendline(self, s) -> int:
97 """Write to socket with trailing newline, return number of bytes written"""
98 s = self._coerce_send_string(s)
99 return self.send(s + self.linesep)
100
101 def write(self, s):
102 """Write to socket, return None"""

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
_coerce_send_stringMethod · 0.80

Tested by

no test coverage detected