summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-12 21:58:17 +0300
committerChristian Linhart <chris@demorecorder.com>2015-03-15 12:05:37 +0100
commit6872e925828e615e2c1d4a0bbcc6be6a32fa4e7a (patch)
tree1a72ef4be260cfeae275c56e9637f34aa373abbd
parent8bf8b62316a3066b61243d797d22c2100fd173f5 (diff)
c_client.py: simplify _c_reply_has_fds()
Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com>
-rw-r--r--src/c_client.py5
1 files changed, 1 insertions, 4 deletions
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):
'''