def find_yajl_cffi(ffi, required):
    '''
    Finds and loads yajl shared object of the required major
    version (1, 2, ...) using cffi.
    '''
    try:
        yajl = ffi.dlopen('yajl')
    except __HOLE__:
        raise YAJLImportError('Unable to load YAJL.')
    require_version(yajl.yajl_version(), required)
    return yajl
dataset/ETHPy150Open isagalaev/ijson/ijson/backends/__init__.py/find_yajl_cffi