From cea42a4df40109d3b7f10e9ffc82c6d16acf626d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 30 Oct 2019 15:31:43 +0100 Subject: [PATCH] Revert stderr.decode("utf-8") that was landed in #1937 #1937 --- gyp/pylib/gyp/input.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gyp/pylib/gyp/input.py b/gyp/pylib/gyp/input.py index 42390f23eb..309959ef75 100644 --- a/gyp/pylib/gyp/input.py +++ b/gyp/pylib/gyp/input.py @@ -911,7 +911,9 @@ def ExpandVariables(input, phase, variables, build_file): p_stdout, p_stderr = p.communicate('') if p.wait() != 0 or p_stderr: - sys.stderr.write(p_stderr.decode('utf-8')) + sys.stderr.write(p_stderr) + # Simulate check_call behavior, since check_call only exists + # in python 2.5 and later. raise GypError("Call to '%s' returned exit status %d while in %s." % (contents, p.returncode, build_file)) replacement = p_stdout.rstrip()