diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-08 03:46:51 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-08 03:46:51 +0000 |
commit | 91397dc1eb573b95209680fd48bb965294a6d690 (patch) | |
tree | 1d822c20be8ef82bb3b0f9b30aa151c6ae913b00 | |
parent | e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2 (diff) | |
download | portage-91397dc1eb573b95209680fd48bb965294a6d690.tar.gz portage-91397dc1eb573b95209680fd48bb965294a6d690.tar.bz2 portage-91397dc1eb573b95209680fd48bb965294a6d690.zip |
Remove unused iter_atoms() function.
svn path=/main/trunk/; revision=9744
-rw-r--r-- | pym/_emerge/__init__.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 4397545dd..86f09af39 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1172,21 +1172,6 @@ def show_masked_packages(masked_packages): shown_licenses.add(l) return have_eapi_mask -def iter_atoms(deps): - """Take a dependency structure as returned by paren_reduce or use_reduce - and iterate over all the atoms.""" - i = iter(deps) - for x in i: - if isinstance(x, basestring): - if x == '||' or x.endswith('?'): - for x in iter_atoms(i.next()): - yield x - else: - yield x - else: - for x in iter_atoms(x): - yield x - class Package(object): __slots__ = ("__weakref__", "built", "cpv", "depth", "installed", "metadata", "root", "onlydeps", "type_name", |