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

Christian Teklenborg chris at linutronix.de
Mon Jun 22 12:54:12 CEST 2020


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>
---
 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('/')
-- 
2.20.1




More information about the elbe-devel mailing list