def format_var(name, obj):
    if name in 'password' and isinstance(obj, str):
        obj = 'xxxxxxxx'
    res = repr(obj)
    if len(res) > 80 and not env.verbose:
        if isinstance(obj, list):
            noun = 'items' if len(obj) != 1 else 'item'
            res = '[<{0} {1}>]'.format(len(obj), noun)
        elif isinstance(obj, dict):
            noun = 'items' if len(obj) != 1 else 'item'
            res = '{{<{0} {1}>}}'.format(len(obj), noun)
        else:
            res = res[:60] + '...' + res[-1]
    return res
dataset/ETHPy150Open ravello/testmill/lib/testmill/state.py/format_var/swapped operands of `in`