Simplify None Package.slot handling in match_from_list().
authorZac Medico <zmedico@gentoo.org>
Fri, 30 May 2008 01:08:35 +0000 (01:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 30 May 2008 01:08:35 +0000 (01:08 -0000)
svn path=/main/trunk/; revision=10499

pym/portage/dep.py

index efabee2627b3ca61c86656fd4792996320bfeb82..d0e487afc135646f33bc606d42043ae44e53be80 100644 (file)
@@ -885,8 +885,8 @@ def match_from_list(mydep, candidate_list):
                candidate_list = mylist
                mylist = []
                for x in candidate_list:
-                       xslot = getattr(x, "slot", None)
-                       if xslot is None and isinstance(x, basestring):
+                       xslot = getattr(x, "slot", False)
+                       if xslot is False:
                                xslot = dep_getslot(x)
                        if xslot is not None and xslot != slot:
                                continue