[Distutils] Reading in Universal Newline mode with pkg_resources

P.J. Eby pje at telecommunity.com
Thu Feb 10 18:43:25 CET 2011


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')?





More information about the Distutils-SIG mailing list