def _description_of(path):
    """Return a string describing the probable encoding of a file."""
    from charade.universaldetector import UniversalDetector

    u = UniversalDetector()
    for line in open(path, 'rb'):
        u.feed(line)
    u.close()
    result = u.result
    if result['encoding']:
        return '%s: %s with confidence %s' % (path,
                                              result['encoding'],
                                              result['confidence'])
    else:
        return path % '%s: no result'
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/charade/__init__.py/_description_of/swapped operands of `%`