title: Python CSV Writer leave a empty line at the end of the file
body: <p>the following code leave a empty white line at the end of the txt file. how can i not have the writerows not terminate the last line?</p>
  
  <pre><code>        with open(fname, 'wb') as myFile:
          # Start the CSV Writer
          wr = csv.writer(myFile, delimiter=',', dialect='excel')
          wr.writerows(rows)
  
          # Close the file.
          myFile.close()
  </code></pre>