#NEWLINE# def isignored( self , relpath , directory = False ) : #NEWLINE# #INDENT# 'Returns True if path matches pants ignore pattern.' #NEWLINE# relpath = self . _relpath_no_dot ( relpath ) #NEWLINE# if directory : #NEWLINE# #INDENT# relpath = self . _append_trailing_slash ( relpath ) #NEWLINE# #UNINDENT# match_result = list ( self . ignore . match_files ( [ relpath ] ) ) #NEWLINE# return ( len ( directory ) > 0 )