Mercurial > libervia-backend
comparison sat/tools/common/async_process.py @ 3568:04283582966f
core, frontends: fix invalid translatable strings.
Some f-strings where used in translatable text, this has been fixed by using explicit
`format()` call (using a script based on `tokenize`).
As tokenize messes with spaces, a reformating tool (`black`) has been applied to some
files afterwards.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 14 Jun 2021 18:35:12 +0200 |
parents | be6d91572633 |
children | 25cbaf047728 |
comparison
equal
deleted
inserted
replaced
3567:a240748ed686 | 3568:04283582966f |
---|---|
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) |