#NEWLINE# def find_ready_matching( ready , flag ) : #NEWLINE# #INDENT# match = [ ] #NEWLINE# for ( fd , mode ) in ready : #NEWLINE# #INDENT# if ( mode & flag ) : #NEWLINE# #INDENT# match . append ( fd ) #NEWLINE# #UNINDENT# #UNINDENT# return match