Wraps send(), sending string ``s`` to child process, with os.linesep automatically appended. Returns number of bytes written.
(self, s='')
| 147 | return len(b) |
| 148 | |
| 149 | def sendline(self, s=''): |
| 150 | '''Wraps send(), sending string ``s`` to child process, with os.linesep |
| 151 | automatically appended. Returns number of bytes written. ''' |
| 152 | |
| 153 | n = self.send(s) |
| 154 | return n + self.send(self.linesep) |
| 155 | |
| 156 | def wait(self): |
| 157 | '''Wait for the subprocess to finish. |