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

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 19:13:36 PDT 2017


Author: chandlerc
Date: Fri Sep 15 19:13:35 2017
New Revision: 313435

URL: http://llvm.org/viewvc/llvm-project?rev=313435&view=rev
Log:
[git] Update the llvm git helper script to work correctly with the
latest Python versions.

Modified:
    llvm/trunk/utils/git-svn/git-llvm

Modified: llvm/trunk/utils/git-svn/git-llvm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/git-svn/git-llvm?rev=313435&r1=313434&r2=313435&view=diff
==============================================================================
--- llvm/trunk/utils/git-svn/git-llvm (original)
+++ llvm/trunk/utils/git-svn/git-llvm Fri Sep 15 19:13:35 2017
@@ -107,7 +107,7 @@ def shell(cmd, strip=True, cwd=None, std
 
     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
 




More information about the llvm-commits mailing list