def _exclude_pattern(self, pattern, anchor=True, prefix=None,<EOL>is_regex=False):
found = False<EOL>pattern_re = self._translate_pattern(pattern, anchor, prefix, is_regex)<EOL>for f in list(self.files):<EOL><INDENT>if pattern_re.search(f):<EOL><INDENT>self.files.remove(f)<EOL>found = True<EOL><DEDENT><DEDENT>return found<EOL>
Remove strings (presumably filenames) from 'files' that match
        'pattern'.

        Other parameters are the same as for 'include_pattern()', above.
        The list 'self.files' is modified in place. Return True if files are
        found.

        This API is public to allow e.g. exclusion of SCM subdirs, e.g. when
        packaging source distributions