Exemplo n.º 1
0
 def sendall(self, data, flags=0):
     if isinstance(data, unicode):
         data = data.encode()
     # this sendall is also reused by gevent.ssl.SSLSocket subclass,
     # so it should not call self._sock methods directly
     data_memory = _get_memory(data)
     return _socketcommon._sendall(self, data_memory, flags)
Exemplo n.º 2
0
 def sendall(self, data, flags=0):
     if isinstance(data, unicode):
         data = data.encode()
     # this sendall is also reused by gevent.ssl.SSLSocket subclass,
     # so it should not call self._sock methods directly
     data_memory = _get_memory(data)
     return _socketcommon._sendall(self, data_memory, flags)
Exemplo n.º 3
0
 def sendall(self, data, flags=0):
     # XXX Now that we run on PyPy3, see the notes in _socket2.py's sendall()
     # and implement that here if needed.
     # PyPy3 is not optimized for performance yet, and is known to be slower than
     # PyPy2, so it's possibly premature to do this. However, there is a 3.5 test case that
     # possibly exposes this in a severe way.
     data_memory = _get_memory(data)
     return _socketcommon._sendall(self, data_memory, flags)
Exemplo n.º 4
0
 def sendall(self, data, flags=0):
     # XXX Now that we run on PyPy3, see the notes in _socket2.py's sendall()
     # and implement that here if needed.
     # PyPy3 is not optimized for performance yet, and is known to be slower than
     # PyPy2, so it's possibly premature to do this. However, there is a 3.5 test case that
     # possibly exposes this in a severe way.
     data_memory = _get_memory(data)
     return _socketcommon._sendall(self, data_memory, flags)