Skip to content

Commit cea42a4

Browse files
authored
Revert stderr.decode("utf-8") that was landed in nodejs#1937
nodejs#1937
1 parent 15a0ded commit cea42a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gyp/pylib/gyp/input.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,9 @@ def ExpandVariables(input, phase, variables, build_file):
911911
p_stdout, p_stderr = p.communicate('')
912912

913913
if p.wait() != 0 or p_stderr:
914-
sys.stderr.write(p_stderr.decode('utf-8'))
914+
sys.stderr.write(p_stderr)
915+
# Simulate check_call behavior, since check_call only exists
916+
# in python 2.5 and later.
915917
raise GypError("Call to '%s' returned exit status %d while in %s." %
916918
(contents, p.returncode, build_file))
917919
replacement = p_stdout.rstrip()

0 commit comments

Comments
 (0)