From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 25 Nov 2012 11:02:11 +0000 (+0100) Subject: Update doc string of portage.dep.extract_affecting_use(). X-Git-Tag: v2.2.0_alpha143~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98a8df6c429e7e40db3a2cdfd7dad9edebdadd3d;p=portage.git Update doc string of portage.dep.extract_affecting_use(). --- diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index e2aa00dfe..b3417e226 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -2649,16 +2649,16 @@ def extract_affecting_use(mystr, atom, eapi=None): that decide if the given atom is in effect. Example usage: - >>> extract_use_cond('sasl? ( dev-libs/cyrus-sasl ) \ + >>> extract_affecting_use('sasl? ( dev-libs/cyrus-sasl ) \ !minimal? ( cxx? ( dev-libs/cyrus-sasl ) )', 'dev-libs/cyrus-sasl') - (['sasl', 'minimal', 'cxx']) + {'cxx', 'minimal', 'sasl'} - @param dep: The dependency string + @param mystr: The dependency string @type mystr: String @param atom: The atom to get into effect @type atom: String - @rtype: Tuple of two lists of strings - @return: List of use flags that need to be enabled, List of use flag that need to be disabled + @rtype: Set of strings + @return: Set of use flags affecting given atom """ useflag_re = _get_useflag_re(eapi) mysplit = mystr.split()