On Thu, Feb 10, 2011 at 7:43 PM, P.J. Eby <[email protected]> wrote:
> At 10:08 PM 2/9/2011 +0200, cool-RR wrote:
>
>> Do you think that source_string.replace('\r', '') would work?
>>
>
> If you know that it's all \r\n newlines, sure. But then why not just
> .rstrip('\r') the lines you read? Or .replace('\r\n', '\n')?
>
Hm, I don't know. I'll just go with it and see if it causes any problems.
Thanks,
Ram.
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig