moveconfig: convert ps.stderr to string
authorMarkus Klotzbuecher <mk@mkio.de>
Wed, 12 Feb 2020 19:46:45 +0000 (20:46 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 25 Feb 2020 18:46:25 +0000 (13:46 -0500)
Printing the error message in verbose mode fails, since python3
doesn't implicitely convert bytes to strings.

Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/moveconfig.py

index df20ec66af57893666f48ff3697cd883c7d06533..d8bf7fd0717fe1c405317e9e5ea95698a50ecefc 100755 (executable)
@@ -1217,7 +1217,7 @@ class Slot:
                                "Failed to process.\n")
         if self.options.verbose:
             self.log += color_text(self.options.color, COLOR_LIGHT_CYAN,
-                                   self.ps.stderr.read())
+                                   self.ps.stderr.read().decode())
         self.finish(False)
 
     def do_defconfig(self):