def add_data(self, *data): data = sparse_free_sequence(data) for value in data: value = string_from_string(value, self.is_strict) if value and value not in self.data: self.data.append(value) return self
def add_data(self, *data): # data = sparse_free_sequence(data) for value in data: value = string_from_string(value, self.is_strict) # if value and value not in self.data: # if value: # self.data.append(value) with MatchDataCtx(value).with_config(self.config) as lex: self.data.append(lex or '') return self