remove useless code

This commit is contained in:
benoitc 2014-05-31 07:18:39 +02:00
parent b810a1d1a9
commit b7cbb59bbc

View File

@ -269,11 +269,6 @@ def set_non_blocking(fd):
flags = fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
def fd_(fd):
if hasattr(fd, "fileno"):
return int(fd.fileno())
return fd
def close(sock):
try:
sock.close()