[Xcb-commit] libxcb: src
Christian Linhart
clinhart at kemper.freedesktop.org
Sun Mar 15 04:05:52 PDT 2015
src/c_client.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 6872e925828e615e2c1d4a0bbcc6be6a32fa4e7a
Author: Ran Benita <ran234 at gmail.com>
Date: Sun Oct 12 21:58:17 2014 +0300
c_client.py: simplify _c_reply_has_fds()
Signed-off-by: Ran Benita <ran234 at gmail.com>
Reviewed-by: Christian Linhart <chris at demorecorder.com>
diff --git a/src/c_client.py b/src/c_client.py
index 897cf8b..6c4ee58 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2497,10 +2497,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):
'''
More information about the xcb-commit
mailing list