camelot
camelot copied to clipboard
ResourceWarning: unclosed file [utils.py:131
trafficstars
Hi,
While extracting tables from pdfs we noticed that we get an unclosed file error from the 131st line
from the dev code, we can see that line 73 and 123 in handlers.py has an open() which may not be closed
this is just what I am speculating. But any ideas on how the resource warning can be eliminated as I feel this is also causing a memory leak
Hi @CyrusDsouza, thanks for opening the issue. I'll look into it as soon as possible.
Fixed by 13a50e2 (although I'd prefer with blocks rather than explicit close).