def set_nonblocking(fd):
 fl = (fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK)
 fcntl.fcntl(fd, fcntl.F_SETFL, fl)

def set_nonblocking ( fd ) : fl = ( fcntl . fcntl ( fd , fcntl . F_GETFL ) | os . O_NONBLOCK ) fcntl . fcntl ( fd , fcntl . F_SETFL , fl )
sets the given file descriptor to non-blocking mode .