def _is_excluded(self, path, dir_only):
        """Check if file is excluded."""

        return self.npatterns and self._match_excluded(path, self.npatterns)
def _is_excluded ( self , path , dir_only ) : return self . npatterns and self . _match_excluded ( path , self . npatterns )
Check if file is excluded.