author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 29 May 2009 14:04:26 +0200 | |
changeset 2003 | e194335569d1 |
parent 2002 | 031414d88003 |
child 2004 | ea9eab290dcd |
selectors.py | file | annotate | diff | comparison | revisions |
--- a/selectors.py Fri May 29 14:04:06 2009 +0200 +++ b/selectors.py Fri May 29 14:04:26 2009 +0200 @@ -275,9 +275,13 @@ # very basic selectors ######################################################## class yes(Selector): - """return arbitrary score""" - def __init__(self, score=1): + """return arbitrary score + + default score of 0.5 so any other selector take precedence + """ + def __init__(self, score=0.5): self.score = score + def __call__(self, *args, **kwargs): return self.score