From 6872e925828e615e2c1d4a0bbcc6be6a32fa4e7a Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 12 Oct 2014 21:58:17 +0300 Subject: c_client.py: simplify _c_reply_has_fds() Signed-off-by: Ran Benita Reviewed-by: Christian Linhart --- src/c_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/c_client.py') 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): ''' -- cgit v1.2.3