</span><span class="p">):</span>
        <span class="n">white_list_formats</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">white_list_formats</span><span class="p">)</span>

    <span class="c1"># If the index file exists, then read it</span>
    <span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">index_path</span