mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[lit] Fix Python-3 compatibility, patch by Dan Liew.
llvm-svn: 220357
This commit is contained in:
parent
ab9d73a70e
commit
0e45326cc9
@ -344,8 +344,8 @@ def parseIntegratedTestScriptCommands(source_path):
|
|||||||
data = f.read()
|
data = f.read()
|
||||||
|
|
||||||
# Ensure the data ends with a newline.
|
# Ensure the data ends with a newline.
|
||||||
if not data.endswith('\n'):
|
if not data.endswith(to_bytes('\n')):
|
||||||
data = data + '\n'
|
data = data + to_bytes('\n')
|
||||||
|
|
||||||
# Iterate over the matches.
|
# Iterate over the matches.
|
||||||
line_number = 1
|
line_number = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user