[Distutils] Reading in Universal Newline mode with pkg_resources

cool-RR cool-rr at cool-rr.com
Tue Feb 8 19:37:17 CET 2011


Hello,

I'm accessing a text file using `pkg_resources`. I want to read it in
universal newline mode, i.e. to read newlines as '\n' regardless whether
they're actually '\r\n'. How do I do this?


Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20110208/0d5d7f2e/attachment.html>


More information about the Distutils-SIG mailing list