[llvm] r220357 - [lit] Fix Python-3 compatibility, patch by Dan Liew.
Daniel Dunbar
daniel at zuster.org
Tue Oct 21 18:26:06 PDT 2014
Author: ddunbar
Date: Tue Oct 21 20:26:06 2014
New Revision: 220357
URL: http://llvm.org/viewvc/llvm-project?rev=220357&view=rev
Log:
[lit] Fix Python-3 compatibility, patch by Dan Liew.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=220357&r1=220356&r2=220357&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Tue Oct 21 20:26:06 2014
@@ -344,8 +344,8 @@ def parseIntegratedTestScriptCommands(so
data = f.read()
# Ensure the data ends with a newline.
- if not data.endswith('\n'):
- data = data + '\n'
+ if not data.endswith(to_bytes('\n')):
+ data = data + to_bytes('\n')
# Iterate over the matches.
line_number = 1
More information about the llvm-commits
mailing list