Serhiy Storchaka added the comment: Here is a patch. It fixes also the same error in TextIOWrapper.
---------- assignee: -> serhiy.storchaka keywords: +patch stage: -> patch review versions: +Python 2.7, Python 3.5 Added file: http://bugs.python.org/file35509/io_nonnormalized_error_on_close.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com