def repr_type(obj):
    """ Return a string representation of a value and its type for readable
    error messages.
    """
    the_type = type(obj)
    if (not six.PY3) and the_type is InstanceType:
        # Old-style class.
        the_type = obj.__class__
    msg = (obj, the_type) % '%r %r'
    return msg
dataset/ETHPy150Open enthought/depsolver/depsolver/bundled/traitlets/_implementation.py/repr_type/swapped operands of `%`