The Voidspace Techie Blog

--detect which line endings
why?
does s.splitlines() not work?
s.splitlines(True) preserves them.
good idea to leave them alone
if you will write the file back again.


Gravatar Hmm... I think I've got a bit lost as to what I actually want to achieve.

I just need to bang away on ConfigObj and implement something that works and is sane.


Gravatar Quick note - splitlines treats all of 'r', 'n' and 'rn' as line endings. Probably not a problem in my case - but I guess it *could* be to someone else.


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan