OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c76fb5
)
[lit] Fix Python-3 compatibility, patch by Dan Liew.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Oct 2014 01:26:06 +0000
(
01:26
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Oct 2014 01:26:06 +0000
(
01:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220357
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/TestRunner.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/TestRunner.py
b/utils/lit/lit/TestRunner.py
index
f280d3f
..
1a2df20
100644
(file)
--- a/
utils/lit/lit/TestRunner.py
+++ b/
utils/lit/lit/TestRunner.py
@@
-344,8
+344,8
@@
def parseIntegratedTestScriptCommands(source_path):
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