Commit df9aea8
committed
Simplify command output capture
A pair of "surrogateescape" decode and encode was used to get
from byte to bytes, with an internal utf-8 representation.
(read more about surrogateescape in https://peps.python.org/pep-0383/)
However the utf-8 representation was not used at all.
Although this simplification is not strictly necessary
(the results before and after must be the same) it took
some time reading it and understanding how the encoding works
during handling a problem that manifested in a failed command run
(#356)1 parent ab97550 commit df9aea8
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | | - | |
38 | | - | |
| 32 | + | |
| 33 | + | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
0 commit comments