Exemplo n.º 1
0
 def send_python3(self, f, *data):
     """Sends data. Note that a trailing newline '\n' is added here"""
     s = "%s(%s)\n"%(f, flatten_parameters_to_string(data))
     #print "f,data:",f,data
     self.drain()
     self.lastSent = s
     self.socket.sendall(s.encode("utf-8"))
Exemplo n.º 2
0
 def send_python3(self, f, *data):
     """Sends data. Note that a trailing newline '\n' is added here"""
     s = "%s(%s)\n" % (f, flatten_parameters_to_string(data))
     #print "f,data:",f,data
     self.drain()
     self.lastSent = s
     self.socket.sendall(s.encode("utf-8"))
Exemplo n.º 3
0
 def send(self, f, *data):
     """Sends data. Note that a trailing newline '\n' is added here"""
     s = "%s(%s)\n" % (f, flatten_parameters_to_string(data))
     if self.batch == True:
         self.batchCommands.append(s)
     else:
         self._doSend(s)