vregistry.py
branchtls-sprint
changeset 835 7dcb11dd443e
parent 827 3f08481e6e51
child 943 9fdfa8d38359
--- a/vregistry.py	Wed Feb 18 22:36:34 2009 +0100
+++ b/vregistry.py	Wed Feb 18 22:37:04 2009 +0100
@@ -695,12 +695,13 @@
 
     def __call__(self, cls, *args, **kwargs):
         score = self.selector(cls, *args, **kwargs)
-        return not score
+        return int(not score)
 
     def __str__(self):
         return 'NOT(%s)' % super(NotSelector, self).__str__()
 
-# advanced selector building functions ########################################
+
+# XXX bw compat functions #####################################################
 
 def chainall(*selectors, **kwargs):
     """return a selector chaining given selectors. If one of