From: Zac Medico Date: Fri, 4 Feb 2011 06:28:35 +0000 (-0800) Subject: Remove from list by index, not search. X-Git-Tag: v2.2.0_alpha20~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=676c6b3845482730d1dec4d683bc6138a5f30727;p=portage.git Remove from list by index, not search. --- diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 68e628b37..62e96d29a 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -2217,7 +2217,7 @@ def check_required_use(required_use, use, iuse_match): node._satisfied = satisfied if node._parent._operator not in ("||", "^^"): offset = node._parent._children.index(node) - node._parent._children.remove(node) + node._parent._children.pop(offset) for i, child in enumerate(node._children): node._parent._children.insert(offset + i, child) if isinstance(child, _RequiredUseBranch):