From: Zac Medico Date: Thu, 29 May 2008 23:10:33 +0000 (-0000) Subject: Use a frozenset instead of a list for containment tests. X-Git-Tag: v2.2_pre8~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a63d129458bd11aa2b1e0a82539a06ed9f5e93f;p=portage.git Use a frozenset instead of a list for containment tests. svn path=/main/trunk/; revision=10489 --- 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]