#NEWLINE# def poll( self , write_wanted ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if write_wanted : #NEWLINE# #INDENT# ( rlist , wlist , xlist ) = select . select ( * self . write ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( rlist , wlist , xlist ) = select . select ( * self . read ) #NEWLINE# #UNINDENT# #UNINDENT# except select . error : #NEWLINE# #INDENT# return ( [ ] , [ ] , [ ] ) #NEWLINE# #UNINDENT# return ( [ sock . fileno ( ) for sock in rlist ] , [ sock . fileno ( ) for sock in wlist ] , [ sock . fileno ( ) for sock in xlist ] )