def __fill_bds(self, bd):
        if hasattr(bd, 'name') and hasattr(bd, 'url'):
            bd = Breadcrumb(bd.name, bd.url)
        else:
            bd = Breadcrumb(*bd)
        if bd.url not in self.__urls:
            self.__bds.append(bd)
            self.__urls.append(bd.url)
Truncates a string after a certain number of chars.
dataset/ETHPy150Open chronossc/django-breadcrumbs/breadcrumbs/breadcrumbs.py/Breadcrumbs.__fill_bds--crossover with--dataset/ETHPy150Open dcramer/sentry-old/sentry/web/templatetags.py/truncatechars