n>
<span class="sd">        </span>
<span class="sd">        Note</span>
<span class="sd">        ----</span>
<span class="sd">        Either `directory` or `cdb` must be given. </span>

<span class="sd">        &quot;&quot;&quot;</span>
        <span class="c1"># Check that directory or cdb was given.</span>
        <span class="k">if</span> <span class="n">directory</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">cdb</span> <span class="ow">is</sp