def METHOD_NAME(self, line):
    for success_regex in self.success_regexes:
        if self._regex_helper.search_compiled(success_regex, line):
            self.success_regexes.remove(success_regex)
            raise ParsingDone()