[elbe-devel] [PATCH] python3: remove unnecessary encode from get_file
Torben Hohn
torben.hohn at linutronix.de
Wed Jun 24 17:29:19 CEST 2020
On Mon, Jun 22, 2020 at 02:59:03PM +0200, Bastian Germann wrote:
> 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>
merged
>
> > ---
> > 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('/')
> >
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list