From 1236a48a406a0a2356de46f421ed911484c96023 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Fri, 4 Dec 2015 21:21:00 +0300 Subject: [PATCH] Fix Python 3 compat --- hererocks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hererocks.py b/hererocks.py index f82f5ce..10f51f1 100755 --- a/hererocks.py +++ b/hererocks.py @@ -75,10 +75,9 @@ def exec_command(capture, *args): exception.returncode, command)) if opts.verbose and capture: - output = output.decode("UTF-8") - sys.stdout.write(output) + sys.stdout.write(output.decode("UTF-8")) - return capture and output + return capture and output.decode("UTF-8") def run_command(*args): exec_command(False, *args)