[ck2cti] Fix reading files with "CR" (old Macintosh) line endings
This commit is contained in:
parent
4f236a80fe
commit
2778267a43
1 changed files with 2 additions and 2 deletions
|
|
@ -1312,7 +1312,7 @@ class Parser(object):
|
|||
|
||||
transportLines = []
|
||||
|
||||
with open(path, 'r') as ck_file:
|
||||
with open(path, 'rU') as ck_file:
|
||||
self.line_number = 0
|
||||
|
||||
def readline():
|
||||
|
|
@ -1692,7 +1692,7 @@ duplicate transport data) to be ignored.
|
|||
self.loadChemkinFile(thermoFile)
|
||||
|
||||
if transportFile:
|
||||
lines = open(transportFile).readlines()
|
||||
lines = open(transportFile, 'rU').readlines()
|
||||
self.parseTransportData(lines)
|
||||
|
||||
# Transport validation: make sure all species have transport data
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue