[issue31686] GZip library doesn't properly close files

2020-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31686] GZip library doesn't properly close files

2020-09-11 Thread Irit Katriel
Irit Katriel added the comment: As for the bug you report - I was unable to reproduce it on windows (python 3.10) or linux (python 3.7). Can you check again to see if you still observe it, and give info on the system and python version if so? --

[issue31686] GZip library doesn't properly close files

2020-09-11 Thread Irit Katriel
Irit Katriel added the comment: The documentation states that: Calling a GzipFile object’s close() method does not close fileobj, since you might wish to append more material after the compressed data. This also allows you to pass an io.BytesIO object opened for writing as fileobj, and

[issue31686] GZip library doesn't properly close files

2017-10-03 Thread Jake Lever
New submission from Jake Lever : The attached code is designed to output compressed data to a gzip file. It creates two GzipFile objects, but only one is really used. It seems that it doesn't clean up and close the file properly. In Py2, the attached code will fail. The