gh-140601: Add ResourceWarning to iterparse when not closed (GH-140603)
When iterparse() opens a file by filename and is not explicitly closed, emit a ResourceWarning to alert developers of the resource leak. Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
O
Osama Abdelkader committed
a486d452c78a7dfcd42561f6c151bf1fef0a756e
Parent: 209eaff
Committed by GitHub <noreply@github.com>
on 11/13/2025, 7:05:28 PM