From 5a63d129458bd11aa2b1e0a82539a06ed9f5e93f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 29 May 2008 23:10:33 +0000 Subject: [PATCH] Use a frozenset instead of a list for containment tests. svn path=/main/trunk/; revision=10489 --- pym/_emerge/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index b818c3225..df29f0462 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4737,10 +4737,9 @@ class depgraph(object): forced_flags.update(pkgsettings.useforce) forced_flags.update(pkgsettings.usemask) - cur_iuse = list(pkg.iuse.all) - cur_iuse.sort() cur_use = [flag for flag in pkg.use.enabled \ - if flag in cur_iuse] + if flag in pkg.iuse.all] + cur_iuse = sorted(pkg.iuse.all) if myoldbest and myinslotlist: previous_cpv = myoldbest[0] -- 2.26.2