|
|
|
--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.
anon |
06/02/07 - 10:04 am | #
|
|
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.
Fuzzyman |
Homepage |
06/02/07 - 6:18 pm | #
|
|
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.
Fuzzyman |
Homepage |
06/02/08 - 3:23 pm | #
|
|
|
Commenting by HaloScan
|