[elbe-devel] [PATCH] python3: remove unnecessary encode from get_file

Bastian Germann bage at linutronix.de
Mon Jun 22 14:59:03 CEST 2020


Am 22.06.20 um 12:54 schrieb Christian Teklenborg:
> The args are already bytes and in python3 bytes dont have an encode function.
> So remove the encode from the args.
> 
> Signed-off-by: Christian Teklenborg <chris at linutronix.de>

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>  elbepack/soapclient.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
> index 71c6d815..dfe38c33 100644
> --- a/elbepack/soapclient.py
> +++ b/elbepack/soapclient.py
> @@ -454,9 +454,9 @@ class GetFileAction(ClientAction):
>                  file=sys.stderr)
>              sys.exit(20)
>  
> -        builddir = args[0].encode()
> -        filename = args[1].encode()
> -        dst_fname = filename.encode()
> +        builddir = args[0]
> +        filename = args[1]
> +        dst_fname = filename
>  
>          if opt.output:
>              fs = Filesystem('/')
> 



More information about the elbe-devel mailing list