def _validate_iterable(iterable_type, value):
    """Convert the iterable to iterable_type, or raise a Configuration
    exception.
    """
    if isinstance(value, six.string_types):
        msg = "Invalid iterable of type(%s): %s"
        raise ValidationError((tuple(value), value) % msg)

    try:
        return iterable_type(value)
    except TypeError:
        raise ValidationError("Invalid iterable: %s" % (value))
dataset/ETHPy150Open dnephin/PyStaticConfiguration/staticconf/validation.py/_validate_iterable/swapped operands of `%`