#NEWLINE# @ classmethod #NEWLINE# def isa( cls , filename ) : #NEWLINE# #INDENT# basename = os . path . basename ( filename ) #NEWLINE# if basename . startswith ( '.' ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# for pattern in pattern . PATTERNS : #NEWLINE# #INDENT# if fnmatch ( filename , pattern ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False