getting rid of EOL character ?

stef s.mientki at id.umcn.nl
Fri Apr 27 09:57:43 EDT 2007


>
> line = line.rstrip("\r\n") should take care of it. If you leave out 
> the parameter, it will strip out all whitespace at the end of the 
> line, which is what I do in most cases.
thanks for the solution Michael,

cheers,
Stef



More information about the Python-list mailing list