[elbe-devel] [PATCH v4 1/1] Python3: fix encoding for both py2 and py3
Olivier Dion
dion at linutronix.de
Sun Feb 16 19:17:42 CET 2020
On Sat, 15 Feb 2020, Bastian Germann <bage at linutronix.de> wrote:
> Am 14.02.20 um 18:06 schrieb Olivier Dion:
>>> get_command_out("dpkg --print-architecture").strip().decode()
>> Maybe do the decoding directly in 'get_command_out' on the
>> 'stdout' object in shellhelper.py.
>
> This will have side effects on all the other get_command_out
> calls. I think we should delay such changes to after dropping
> py2 completely.
Afterthought I agree with that. Even though we use
get_command_out only around 3 times. It's safer to asume that the
output is not always utf-8.
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list