Add back _conditionals_class.values() method in order to fix breakage
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Aug 2010 18:41:54 +0000 (11:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Aug 2010 18:41:54 +0000 (11:41 -0700)
in circular_dependency_handler._find_suggestions().

pym/portage/dep/__init__.py

index 979f2c9fbd999fb11a138a56618f5e04ca97183a..5813009ac7ca1b951054f196aeb92803a4b773bb 100644 (file)
@@ -566,6 +566,11 @@ class _use_dep(object):
 
        class _conditionals_class(object):
                __slots__ = ("enabled", "disabled", "equal", "not_equal")
+               def values(self):
+                       for k in self.__slots__:
+                               v = getattr(self, k, None)
+                               if v:
+                                       yield v
 
        def __init__(self, use):
                enabled_flags = set()