def set_filter(self, filter_text): if filter_text: try: parsed_filter = TraceFilter.from_string(self._parser, filter_text) except FilterParseError: return False else: parsed_filter = TraceFilter.true() self._filter = parsed_filter.filter self._parser.set_filter(self._filter) self.reread() return True
def set_filter(self, filter_text): if filter_text: try: parsed_filter = TraceFilter.from_string( self._parser, filter_text) except FilterParseError: return False else: parsed_filter = TraceFilter.true() self._filter = parsed_filter.filter self._parser.set_filter(self._filter) self.reread() return True
def get_matcher_from_string(self, string): try: parsed_filter = TraceFilter.from_string(self._parser, string) except FilterParseError: return None return parsed_filter