Raymond Hettinger added the comment: Serhiy, after reviewing this, consider backporting it.
The original code doesn't have a try/finally around the close() call and that could be considered a bug. ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21729> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com