From 7929993b8f5a593e70abc8f81234649fc7213a5c Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Thu, 15 Aug 2019 20:36:25 +0200 Subject: [PATCH] Use library to track container lifetimes --- tools/pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pr.py b/tools/pr.py index c556a07a6..62b88809d 100644 --- a/tools/pr.py +++ b/tools/pr.py @@ -43,7 +43,7 @@ if response.status_code == 200: p = subprocess.Popen('git show --format=format:%h'.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) comm = p.communicate() - stdout = comm[0] + stdout = comm[0].decode(encoding='utf-8', errors='ignore') if stdout.find('\n') > 0: stdout = stdout[:stdout.find('\n')] print('\nMessage: I merged this with ' + stdout)