#714109: [selectors] non_final_entity should implement score_class stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 23 Feb 2010 12:59:30 +0100
branchstable
changeset 4664 bd5ecd5b9494
parent 4663 ebbe62209f4e
child 4665 873ebd160954
#714109: [selectors] non_final_entity should implement score_class
selectors.py
--- a/selectors.py	Tue Feb 23 12:52:57 2010 +0100
+++ b/selectors.py	Tue Feb 23 12:59:30 2010 +0100
@@ -528,6 +528,9 @@
             return 0
         return 1
 
+    def score_class(self, eclass, req):
+        return 1 # necessarily true if we're there
+
 
 class implements(ImplementsMixIn, EClassSelector):
     """Return non-zero score for entity that are of the given type(s) or