summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-05-30 15:36:31 -0700
committerZac Medico <zmedico@gentoo.org>2012-05-30 15:36:31 -0700
commit0b11d51b266e6aae5787423b084c00dd0eafcd2c (patch)
tree68d7ae38a4db24d06f91722ea47c3779fee165da /pym/repoman
parentb6fa4dbba0297226ade42ad86b8ca95a5764e34b (diff)
downloadportage-0b11d51b266e6aae5787423b084c00dd0eafcd2c.tar.gz
portage-0b11d51b266e6aae5787423b084c00dd0eafcd2c.tar.bz2
portage-0b11d51b266e6aae5787423b084c00dd0eafcd2c.zip
Use any() to optimize intersection operations.
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 35225c229..94dcfbea8 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -470,7 +470,7 @@ class InheritEclass(LineCheck):
self._inherit = False
self._func_call = False
if hasattr(self, '_exempt_eclasses'):
- self._disabled = self._exempt_eclasses.intersection(pkg.inherited)
+ self._disabled = any(x in pkg.inherited for x in self._exempt_eclasses)
else:
self._disabled = False