Syntactic sugar to add a '\n' at the end of the . Returns the number of bytes written.
(self, s)
| 161 | return count |
| 162 | |
| 163 | def writeline(self, s): |
| 164 | """Syntactic sugar to add a '\n' at the end of the . |
| 165 | |
| 166 | Returns the number of bytes written. |
| 167 | """ |
| 168 | if not s.endswith('\n'): |
| 169 | s += '\n' |
| 170 | return self.write(s) |
| 171 | |
| 172 | @classmethod |
| 173 | def spawn( |