title: Python 3 Base64 decode messing up newline characters
body: <p>I'm trying to decode a base64 multi-line file through the standard python library, however only the first line gets decoded, and the rest gets dumped for no reason.</p>
  <p>Why is this?</p>
  <p>The file before it gets encoded (what I'm trying to achieve after decoding):</p>
  <blockquote>
  <p>dataFile.dat</p>
  <p>VERSION: BenWin+ Version: 3.0.12.1[CR]</p>
  <p>[CR][LF]</p>
  <p>CREATED: 01 September 2016 12:56:27 PM[CR]</p>
  <p>[CR][LF]</p>
  <p>TIME CODE: 0x907e0, 0x10004, 0x38000c, 0x242001b[CR]</p>
  <p>[CR][LF]</p>
  <p>...</p>
  </blockquote>
  <p>[CR] and [LF] are the character codes for Carriage Return (\r) and Line Feed (\n) respectively</p>
  <p>I base64 encode the file using base64.b64encode and want to decode it later. Here is my code snippet.</p>
  <pre><code>encodedData = b'VkVSU0lPTjogQmVuV2luKyBWZXJzaW9uOiAzLjAuMTIuMQo=Cg==Q1JFQVRFRDogMDEgU2VwdGVtYmVyIDIwMTYgMTI6NTY6MjcgUE0KCg==VElNRSBDT0RFOiAweDkwN2UwLCAweDEwMDA0LCAweDM4MDAwYywgMHgyNDIwMDFiCg==Cg=='
  
  data = base64.b64decode(encodedData)
  print(data)
  </code></pre>
  <p>Which returns</p>
  <blockquote>
  <p>b'VERSION: BenWin+ Version: 3.0.12.1\n'</p>
  </blockquote>
  <p>Thanks in advance.
  Using Python 3.5</p>