[issue34958] urllib.error.HTTPError.fp is not closed when error is finalized on Windows

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue34958] urllib.error.HTTPError.fp is not closed when error is finalized on Windows

2018-10-18 Thread Xiao Di Guan
Change by Xiao Di Guan : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34958] urllib.error.HTTPError.fp is not closed when error is finalized on Windows

2018-10-11 Thread Xiao Di Guan
New submission from Xiao Di Guan : Following changes introduced in bpo-15002, HTTPError closes its fp when GCed via tempfile._TemporaryFileCloser's finalizer. However, the current implementation of _TemporaryFileCloser only defines __del__ for non-NT platforms. Assuming HTTPError.fp is part