title: How do I clean up empty lines in a configparser file?
body: <p>I sometimes get an .ini file that looks like this after changing and deleting values:</p>
  
  <pre><code>[Section A]
  x = 1
  d = 2
  
  
  
  [Section B]
  a = 3
  </code></pre>
  
  <p>Is there an easy way to keep it clean and remove those blank lines between the sections?</p>