python-patch icon indicating copy to clipboard operation
python-patch copied to clipboard

fromfile leaks file pointer in case parse raises exception

Open stefanoborini opened this issue 7 years ago • 0 comments

the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed.

stefanoborini avatar Jan 14 '19 14:01 stefanoborini