[selectors] ensure selector return an int
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 May 2010 15:02:56 +0200
changeset 5568 83acff1b50cc
parent 5567 bb97cd6ded2d
child 5569 cb14af012a96
[selectors] ensure selector return an int
selectors.py
--- a/selectors.py	Fri May 21 15:02:42 2010 +0200
+++ b/selectors.py	Fri May 21 15:02:56 2010 +0200
@@ -561,7 +561,7 @@
 
     @lltrace
     def __call__(self, cls, req, rset=None, **kwargs):
-        return rset is not None and self.match_expected(rset.rowcount)
+        return int(rset is not None and self.match_expected(rset.rowcount))
 
 
 class multi_columns_rset(multi_lines_rset):