From 34b0fcc882664b78911b8f67461ad70676e4debe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Feb 2011 22:28:35 -0800 Subject: [PATCH] Remove from list by index, not search. --- pym/portage/dep/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2