1
2
3
4
5
|
<span class='line'><span class="k">for</span> <span class="n">fd</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="n">maxfd</span><span class="p">):</span>
</span><span class='line'> <span class="k">try</span><span class="p">:</span>
</span><span class='line'> <span class="n">os</span><span class="o">.</span><span class="n">close</span><span class="p">(</span><span class="n">fd</span><span class="p">)</span>
</span><span class='line'> <span class="k">except</span><span class="p">:</span>
</span><span class='line'> <span class="k">pass</span>
</span>
|