[ck2cti] Fix reading files with "CR" (old Macintosh) line endings

This commit is contained in:
Ray Speth 2013-07-08 01:35:12 +00:00
parent 4f236a80fe
commit 2778267a43

View file

@ -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