just send

This commit is contained in:
benoitc 2010-02-25 20:01:25 +01:00
parent 7d31b224b9
commit 6badf22041

View File

@ -104,13 +104,8 @@ def read_partial(sock, length):
return data
def write(sock, data):
try:
sock.sendall(data)
except socket.error, e:
if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN):
pass
raise
sock.sendall(data)
def write_nonblock(sock, data):
timeout = sock.gettimeout()
if timeout != 0.0: