def __repr__(self):
        return (self.__class__.__name__, self.discount) % '%s(%r)'


# Helper global as returning zero discount is quite common
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/offer/results.py/BasketDiscount.__repr__/swapped operands of `%`