dimorphite_dl icon indicating copy to clipboard operation
dimorphite_dl copied to clipboard

Close smarts file handle after reading

Open iprotsyuk opened this issue 2 years ago • 0 comments

This PR fixes the following warning:

dimorphite_dl/dimorphite_dl.py:718: ResourceWarning: unclosed file <_io.TextIOWrapper name='dimorphite_dl/site_substructures.smarts' mode='r' encoding='UTF-8'>
  for l in open(site_structures_file, "r")
ResourceWarning: Enable tracemalloc to get the object allocation traceback

iprotsyuk avatar Nov 09 '22 13:11 iprotsyuk