[jhbuild] Fix a TypeError in case a executing a command fails



commit ae18b9aaeccde986aa22e3b45f6b5d22fa6049a7
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sat Dec 7 22:32:52 2019 +0100

    Fix a TypeError in case a executing a command fails
    
    The output produced by pprint_output() is already decoded so use str not bytes.

 jhbuild/frontends/terminal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index 983cceef..3387e437 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -285,7 +285,7 @@ class TerminalBuildScript(buildscript.BuildScript):
         try:
             if p.wait() != 0:
                 if self.config.quiet_mode:
-                    print(b''.join(output))
+                    print(''.join(output))
                 raise CommandError(_('########## Error running %s')
                                    % print_args['command'], p.returncode)
         except OSError:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]