STINNER Victor <vstinner at redhat.com> added the comment: > I'm using `contextlib.closing` Oh, I missed that: good! ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue35629> _______________________________________