def __html__(self):
        attrs = dict(self.html_attrs)

        # adds ``active`` to class list
        html_class = attrs.get('class', [])
        if self.is_active:
            html_class.append('active')

        # joins class list
        attrs['class'] = ' '.join(html_class)
        if not attrs['class']:
            del attrs['class']
        attrs['href'] = self.url
        attrs_template, attrs_values = join_html_attrs(attrs)

        return Markup(attrs_template % '<a %s>{label}</a>').format(
            *attrs_values, label=self.label)
dataset/ETHPy150Open tonyseek/flask-navigation/flask_navigation/item.py/Item.__html__/swapped operands of `%`