[Xcb] [PATCH libxcb 15/18] c_client.py: simplify _c_reply_has_fds()

Ran Benita ran234 at gmail.com
Sun Oct 12 11:58:17 PDT 2014


Signed-off-by: Ran Benita <ran234 at gmail.com>
---
 src/c_client.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/c_client.py b/src/c_client.py
index 686eca5..d561e04 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2165,10 +2165,7 @@ def _c_reply(self, name):
     _c('}')
 
 def _c_reply_has_fds(self):
-    for field in self.fields:
-        if field.isfd:
-            return True
-    return False
+    return any(field.isfd for field in self.fields)
 
 def _c_reply_fds(self, name):
     '''
-- 
2.1.2



More information about the Xcb mailing list