Jon Brandvein <jon.brandvein at gmail.com> added the comment: Patch looks fine. I like the use of "finally" for the flush. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue13812> _______________________________________