predicates.py
changeset 10613 8d9fe02387e3
parent 10612 84468b90e9c1
child 10651 9ca33768473c
--- a/predicates.py	Mon Sep 14 16:03:07 2015 +0200
+++ b/predicates.py	Thu Sep 17 09:52:06 2015 +0200
@@ -24,7 +24,7 @@
 from warnings import warn
 from operator import eq
 
-from six import string_types
+from six import string_types, integer_types
 from six.moves import range
 
 from logilab.common.deprecation import deprecated
@@ -674,7 +674,7 @@
             score = scorefunc(*args, **kwargs)
             if not score:
                 return 0
-            if isinstance(score, (int, long)):
+            if isinstance(score, integer_types):
                 return score
             return 1
         self.score_entity = intscore