="n">endswith</span><span class="p">(</span><span class="s1">'.tar.gz'</span><span class="p">):</span>
            <span class="n">_extractall_tarfile</span><span class="p">(</span><span class="n">archive_path</span><span class="p">,</span> <span class="n">dest_dir</span><span class="p">)</span>

        <span class="k">elif</span> <span class="n">archive_path</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="s1">'.gz'</span><span class="p">):</span>
         