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.1.9.36~11 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=34b0fcc882664b78911b8f67461ad70676e4debe;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):