[git] Update the llvm git helper script to work correctly with the

latest Python versions.

llvm-svn: 313435
This commit is contained in:
Chandler Carruth 2017-09-16 02:13:35 +00:00
parent 950b19515a
commit 309f360240
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def shell(cmd, strip=True, cwd=None, stdin=None, die_on_failure=True,
start = time.time()
p = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=err_pipe,
stdin=subprocess.PIPE)
stdin=subprocess.PIPE, universal_newlines=True)
stdout, stderr = p.communicate(input=stdin)
elapsed = time.time() - start