You're fine, ConfigParser
will still work.
The reason is that is uses fp.readline
, which reads up to and including the next LF (\n
). The value is then stripped of whitespace, which removes the CR (\r
).
I'd say just use LF (\n
) as your line separator - it will work on both systems, but using both won't cause any harm either.
Edit: In fact, if you generate a file using ConfigParser.RawConfigParser
it will use \n
as the line separator.