regex_func</span> <span class="o">=</span> <span class="n">regex</span>
    <span class="k">else</span><span class="p">:</span>
        <span class="n">regex_func</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">_</span><span class="p">:</span> <span class="kc">True</span> <span class="c1"># pylint: disable-unnecessary-lambda-assignment</span>

    <span class="k">with</span> <span class="n">tarfile</span><span class="o">.</span><span class="n">open</span><span class="p">(</span