parameters: (self, data)
docstring: \
          This generator function is for the user. All outgoing data has to be
          properly escaped, so that no IAC character in the data stream messes up
          the Telnet state machine in the server.
  
          socket.sendall(escape(data))
docstring_summary: \
          This generator function is for the user. All outgoing data has to be
          properly escaped, so that no IAC character in the data stream messes up
          the Telnet state machine in the server.
docstring_tokens: \ This generator function is for the user . All outgoing data has to be properly escaped so that no IAC character in the data stream messes up the Telnet state machine in the server .
function: def escape(self, data):
          """\
          This generator function is for the user. All outgoing data has to be
          properly escaped, so that no IAC character in the data stream messes up
          the Telnet state machine in the server.
  
          socket.sendall(escape(data))
          """
          for byte in iterbytes(data):
              if byte == IAC:
                  yield IAC
                  yield IAC
              else:
                  yield byte
function_tokens: def escape ( self , data ) : for byte in iterbytes ( data ) : if byte == IAC : yield IAC yield IAC else : yield byte