From 2778267a4363888fa0a5ff4d341d17eb7f97ee23 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 8 Jul 2013 01:35:12 +0000 Subject: [PATCH] [ck2cti] Fix reading files with "CR" (old Macintosh) line endings --- interfaces/python/ck2cti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/python/ck2cti.py b/interfaces/python/ck2cti.py index 056718505..f916c6baf 100755 --- a/interfaces/python/ck2cti.py +++ b/interfaces/python/ck2cti.py @@ -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