[Distutils] Reading in Universal Newline mode with pkg_resources
cool-RR
cool-rr at cool-rr.com
Thu Feb 10 18:46:23 CET 2011
On Thu, Feb 10, 2011 at 7:43 PM, P.J. Eby <pje at telecommunity.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20110210/f979363a/attachment.html>
More information about the Distutils-SIG
mailing list