• Julien Muchembled's avatar
    Close an unused HTTPResponse object explicitly · 5af1d9cc
    Julien Muchembled authored
    Recent Python started to warning about this, here 3.13:
    
        urllib.error.HTTPError: HTTP Error 404: Not Found
        Exception ignored in: <http.client.HTTPResponse object at 0x7f4afe33ed70>
        Traceback (most recent call last):
         File "http/client.py", line 432, in close
           super().close() # set "closed" flag
         File "http/client.py", line 445, in flush
           self.fp.flush()
        ValueError: I/O operation on closed file.
    5af1d9cc