def _format_sign(is_negative, spec):
    """Determine sign character."""

    if is_negative:
        return '-'
    elif spec['sign'] in ' +':
        return spec['sign']
    else:
        return ''
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/decimal.py/_format_sign/original