# HG changeset patch # User Sylvain Thénault # Date 1266926370 -3600 # Node ID bd5ecd5b9494bcd945ec7c9358ddb89f800b9f9d # Parent ebbe62209f4ebbdea40392334984230cb1aec174 #714109: [selectors] non_final_entity should implement score_class diff -r ebbe62209f4e -r bd5ecd5b9494 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