def apply_filter(self, filter): self.results.apply_filter(None) if self.options['escape_filter_regexp']: filter = escape(filter, set('()[]\\.|+?^')) filter = escape(filter, '*', '.') self.results.apply_filter(filter) self._results_changed()
def apply_filter(self, filter): """Apply a filter ``filter`` to the results so that it shows only dupe groups that match it. :param str filter: filter to apply """ self.results.apply_filter(None) if self.options['escape_filter_regexp']: filter = escape(filter, set('()[]\\.|+?^')) filter = escape(filter, '*', '.') self.results.apply_filter(filter) self._results_changed()
def apply_filter(self, filter): """Apply a filter ``filter`` to the results so that it shows only dupe groups that match it. :param str filter: filter to apply """ self.results.apply_filter(None) if self.options['escape_filter_regexp']: filter = escape(filter, set('()[]\\.|+?^')) filter = escape(filter, '*', '.') self.results.apply_filter(filter) self._results_changed()
def apply_filter(self, result_filter): """Apply a filter ``filter`` to the results so that it shows only dupe groups that match it. :param str filter: filter to apply """ self.results.apply_filter(None) if self.options["escape_filter_regexp"]: result_filter = escape(result_filter, set("()[]\\.|+?^")) result_filter = escape(result_filter, "*", ".") self.results.apply_filter(result_filter) self._results_changed()