ass="s1">&#39;postgresql&#39;</span><span class="p">):</span>
    <span class="c1"># create a parser</span>
    <span class="n">parser</span> <span class="o">=</span> <span class="n">ConfigParser</span><span class="p">()</span>
    <span class="c1"># read config file</span>
    <span class="n">parser</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="n">filename</span><span class="p">)</span>

    <span class="c1"># get section, default to postgresql</span>
    <sp