def get_iuse(cp):
    cpv = _get_cpv(cp)
    try:
        # aux_get might return dupes, so run them through set() to remove them
        dirty_flags = _porttree().dbapi.aux_get(cpv, ["IUSE"])[0].split()
        return list(set(dirty_flags))
    except Exception as e:
        return []
.. versionadded:: 2015.8.0
dataset/ETHPy150Open saltstack/salt/salt/modules/portage_config.py/get_iuse