#NEWLINE# def get_installed_use( cp , use = 'USE' ) : #NEWLINE# #INDENT# '\n    .. versionadded:: 2015.8.0\n\n    Gets the installed USE flags from the VARDB.\n\n    @type: cp: string\n    @param cp: cat/pkg\n    @type use: string\n    @param use: 1 of ["USE", "PKGUSE"]\n    @rtype list\n    @returns [] or the list of IUSE flags\n    ' #NEWLINE# portage = _get_portage ( ) #NEWLINE# cpv = _get_cpv ( cp ) #NEWLINE# return portage . db [ portage . root ] [ 'vartree' ] . dbapi . aux_get ( cpv , [ use ] ) [ 0 ] . split ( )