[elbe-devel] [PATCH v2 13/27] fstab: fix losetup returning bytes instead of str
Bastian Germann
bage at linutronix.de
Thu Sep 24 17:09:53 CEST 2020
Am 24.09.20 um 16:56 schrieb Torben Hohn:
> get_command_out() returns bytes
>
> Convert to decode() the bytes.
>
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: Bastian Germann <bage at linutronix.de>
> ---
> elbepack/fstab.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/elbepack/fstab.py b/elbepack/fstab.py
> index 0ad6a743f..f3e0f5757 100644
> --- a/elbepack/fstab.py
> +++ b/elbepack/fstab.py
> @@ -151,7 +151,7 @@ class fstabentry(object):
> else:
> break
>
> - return loopdev.rstrip('\n')
> + return loopdev.decode().rstrip('\n')
>
> def tuning(self, loopdev):
> if self.tune:
>
More information about the elbe-devel
mailing list