mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
[lit] Fix Python-3 compatibility, patch by Dan Liew.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c76fb5008
commit
539be96ea4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user