comparison sat/tools/common/async_process.py @ 3573:813595f88612

merge changes from main branch
author Goffi <goffi@goffi.org>
date Thu, 17 Jun 2021 13:05:58 +0200
parents 04283582966f
children 25cbaf047728
comparison
equal deleted inserted replaced
3541:888109774673 3573:813595f88612
74 self.err_data.append(data) 74 self.err_data.append(data)
75 75
76 def processEnded(self, reason): 76 def processEnded(self, reason):
77 data = b''.join(self.data) 77 data = b''.join(self.data)
78 if (reason.value.exitCode == 0): 78 if (reason.value.exitCode == 0):
79 log.debug(_(f'{self.command_name!r} command succeed')) 79 log.debug(f'{self.command_name!r} command succeed')
80 # we don't use "replace" on purpose, we want an exception if decoding 80 # we don't use "replace" on purpose, we want an exception if decoding
81 # is not working properly 81 # is not working properly
82 self._deferred.callback(data) 82 self._deferred.callback(data)
83 else: 83 else:
84 err_data = b''.join(self.err_data) 84 err_data = b''.join(self.err_data)