selectors.py
branchtls-sprint
changeset 1011 22812cfe36b4
parent 876 f652660ae9a6
child 1037 1f3fae8d82b2
--- a/selectors.py	Wed Mar 04 18:49:58 2009 +0100
+++ b/selectors.py	Wed Mar 04 18:50:13 2009 +0100
@@ -745,7 +745,7 @@
             return 0
         rset = entity.related(self.rtype, self.role)
         if self.target_etype:
-            return any(x for x, in rset.description if x == self.target_etype)
+            return any(r for r in rset.description if r[0] == self.target_etype)
         return rset and 1 or 0