#NEWLINE# def _filtered_scan( self , results , match = None , count = None ) : #NEWLINE# #INDENT# if ( match is not None ) : #NEWLINE# #INDENT# results = fnmatch . filter ( results , match ) #NEWLINE# #UNINDENT# if count : #NEWLINE# #INDENT# results = results [ : count ] #NEWLINE# #UNINDENT# return results