c_client.py: simplify _c_reply_has_fds()
Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com>
This commit is contained in:
parent
8bf8b62316
commit
6872e92582
|
@ -2497,10 +2497,7 @@ def _c_reply(self, name):
|
||||||
_c('}')
|
_c('}')
|
||||||
|
|
||||||
def _c_reply_has_fds(self):
|
def _c_reply_has_fds(self):
|
||||||
for field in self.fields:
|
return any(field.isfd for field in self.fields)
|
||||||
if field.isfd:
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _c_reply_fds(self, name):
|
def _c_reply_fds(self, name):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue