def detect(aBuf):
    if (((3, 0) < version_info and isinstance(aBuf, unicode)) or
            (version_info >= (3, 0) and not isinstance(aBuf, bytes))):
        raise ValueError('Expected a bytes object, not a unicode object')

    from . import universaldetector
    u = universaldetector.UniversalDetector()
    u.reset()
    u.feed(aBuf)
    u.close()
    return u.result
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/charade/__init__.py/detect/swapped operands of `<`