parameters: (self, data)
docstring: send data to the application.
docstring_summary: send data to the application.
docstring_tokens: send data to the application .
function: def sendline(self, data):
          """send data to the application.
          """
          if self.logfile:
              self.logfile.write('%s: sendline: "%s"\n' % (self.desc, escape(data)))
              self.logfile.flush()
          data = data + "\n"
          if win32 or sys.version_info[0] == 2:
              self.p.stdin.write(data)
          else:
              self.p.stdin.write(data.encode("utf-8"))
function_tokens: def sendline ( self , data ) : if self . logfile : self . logfile . write ( '%s: sendline: "%s"\n' % ( self . desc , escape ( data ) ) ) self . logfile . flush ( ) data = data + "\n" if win32 or sys . version_info [ 0 ] == 2 : self . p . stdin . write ( data ) else : self . p . stdin . write ( data . encode ( "utf-8" ) )