metamap.py Line 51, unclosed file opened for reading #211

Closed
opened 2025-10-14 16:34:01 -06:00 by navan · 0 comments
Owner

Originally created by @thesw4rm on 10/26/2018

On line 51 of metamap.py, the file_to_map is opened and not closed during the method. Possible I/O leak on systems.

*Originally created by @thesw4rm on 10/26/2018* On [line 51 of metamap.py](https://github.com/NanoNLP/medaCy/blob/344df0f556b6eb452907b10e4c511fbf87a1943f/medacy/pipeline_components/metamap/metamap.py#L51), the `file_to_map` is opened and not closed during the method. Possible I/O leak on systems.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/medaCy#211
No description provided.