def _plus_minus(value):
    try:
        i = int(value)

        if i >= 0:
            return '+%d' % i
        else:
            return mark_safe(u'&minus;%d' % (-i))
    except Exception:
        return value
dataset/ETHPy150Open dndtools/dndtools/dndtools/dnd/templatetags/custom_filters.py/_plus_minus/original