def _setup_fd(fd):
 flags = fcntl.fcntl(fd, fcntl.F_GETFL)
 fcntl.fcntl(fd, fcntl.F_SETFL, (flags | os.O_NONBLOCK))
 set_buf_size(fd)

def _setup_fd ( fd ) : flags = fcntl . fcntl ( fd , fcntl . F_GETFL ) fcntl . fcntl ( fd , fcntl . F_SETFL , ( flags | os . O_NONBLOCK ) ) set_buf_size ( fd )
common set-up code for initializing a file descriptor .