def clean_join(separator, iterable):
    return separator.join(filter(None, iterable))


#def get_cleaned_bits(data):
#    return smart_split(get_cleaned_bits(data))
Filters out iterable to only join non empty items.
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/utils/search.py/clean_join