def _fileno_can_read(fileno):
 return (len(select.select([fileno], [], [], 0)[0]) > 0)

def _fileno_can_read ( fileno ) : return ( len ( select . select ( [ fileno ] , [ ] , [ ] , 0 ) [ 0 ] ) > 0 )
check if a file descriptor is readable .