From: Markus Klotzbuecher Date: Wed, 12 Feb 2020 19:46:45 +0000 (+0100) Subject: moveconfig: convert ps.stderr to string X-Git-Tag: v2020.04-rc3~2^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f5c5e99bb5cd6b8aacee3a4900edbc406dbb813;p=oweals%2Fu-boot.git moveconfig: convert ps.stderr to string Printing the error message in verbose mode fails, since python3 doesn't implicitely convert bytes to strings. Signed-off-by: Markus Klotzbuecher Cc: Simon Glass Cc: Tom Rini Cc: Masahiro Yamada Reviewed-by: Simon Glass --- diff --git a/tools/moveconfig.py b/tools/moveconfig.py index df20ec66af..d8bf7fd071 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -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):