Don't convert newline when reading a file
<p>I'm reading a text file:</p>

<pre><code>f = open('data.txt')
data = f.read()
</code></pre>

<p>However newline in <code>data</code> variable is normalized to LF ('\n') while the file contains CRLF ('\r\n').</p>

<p>How can I instruct Python to read the file as is?</p>
