How in python's module CONFIGPARSER read text from variable, not from a file?
<p>The problem is that <code>config.read("filename.ini")</code> - requires a local file. I download the content of this file straight into the variable from my FTP server with the help of StringIO. </p>

<pre><code>content = StringIO()
f.retrbinary('RETR /folder1/inifile.ini, content.write)
request = content.getvalue()
config.read(request)
</code></pre>

<p>I found this in the python docs.</p>

<p>Using your StringIO object it looks like you can use config.readfp(contents).</p>

python ftp readfile ini configparser