Remove all blank lines from list python
<p>I have the following results set as a variable.  I need to remove all blank lines before I can make it a dictionary.  What is a simple command I can run on a variable to remove all blank lines that may be contained in that variable.  Below is an example of the output of my variable:</p>

<pre><code>DeviceName = device1
ClientName = myclient
RegionName = west
PrimaryIP = 1.1.1.1
OsVersionName = Microsoft Windows 7 Enterprise
AccessMethod = None
AccessIP = None
Port = None


DeviceName = device2
ClientName = myclient
RegionName = None
PrimaryIP = 1.1.1.2
OsVersionName = Microsoft Windows 7 Enterprise
AccessMethod = None
AccessIP = None
Port = None
</code></pre>

<p>There is also a blank space at the beginning.  I have tried a few different ways, but they only seem to remove the first blank line. I need to remove any and all blank lines that might appear in my results.</p>
