code: def send(self, data):
          
          assert isinstance(data, text_type)
  
          # When data is send back to the client, we should replace the line
          # endings. (We didn't allocate a real pseudo terminal, and the telnet
          # connection is raw, so we are responsible for inserting \r.)
          self.stdout.write(data.replace('\n', '\r\n'))
          self.stdout.flush()
docs: Send text to the client.