title: one liner for removing blank lines from a file in python?
body: <p>I'm looking for one liner which will remove all the blank lines from a file in python.
  python equivalent for --> <code>grep -v '^$' file_name &gt; file_name</code></p>