title: Python 2 CSV writer produces wrong line terminator on Windows
body: <p>According to the <a href="http://docs.python.org/library/csv.html#csv.Dialect.lineterminator" rel="noreferrer">its documentation</a> csv.writer should use '\r\n' as lineterminator by default.</p>
  
  <pre><code>import csv
  
  with open("test.csv", "w") as f:
      writer = csv.writer(f)
  
      rows = [(0,1,2,3,4),
             (-0,-1,-2,-3,-4),
             ("a","b","c","d","e"),
             ("A","B","C","D","E")]           
  
      print writer.dialect.lineterminator.replace("\r", "\\r").replace("\n", "\\n")
      writer.writerows(rows)
      print writer.dialect.lineterminator.replace("\r", "\\r").replace("\n", "\\n")
  </code></pre>
  
  <p>This prints</p>
  
  <pre><code>\r\n
  \r\n
  </code></pre>
  
  <p>as expected. But, the created csv-file uses the lineterminator '\r\r\n'</p>
  
  <pre><code>0,1,2,3,4
  
  0,-1,-2,-3,-4
  
  a,b,c,d,e
  
  A,B,C,D,E
  </code></pre>
  
  <p>Is this a bug or is there something wrong in my usage of csv.writer?</p>
  
  <p>Python version:</p>
  
  <blockquote>
    <p>ActivePython 2.6.2.2 (ActiveState
    Software Inc.) based on Python 2.6.2
    (r262:71600, Apr 21 2009, 15:05:37)
    [MSC v.1500 32 bit (Intel)] on win32</p>
  </blockquote>
  
  <p>on Windows Vista</p>