<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def writeline(self, text):
 """Send a packet with line ending."""

        log.debug('writing line %r' % text)
        self.write(text+chr(10))