def describe_seconds(value):
    """
    Convert a seconds value into a human readable (ie week, day, hour) value.
    :param value: integer value of the number of seconds.
    :return: a string with the humanized value.
    """
    value_vector = []
    for unit, factor in iter(TIME_MAP):
        component, value = int(value / factor), value % factor
        if component:
            value_vector.append((component, unit) % '%s%s')
    return ' '.join(value_vector)
dataset/ETHPy150Open timsavage/django-extras/django_extras/utils/humanize.py/describe_seconds/swapped operands of `%`