#NEWLINE# def _accept_file( self , f ) : #NEWLINE# #INDENT# "Returns true if the given file's extension matches this Sources type." #NEWLINE# ( _ , ext ) = os . path . splitext ( f ) #NEWLINE# return ( ext in self . extensions )