Joseph Hackman added the comment: I haven't seen OP in over 30 days, so am posting my own patch.
I've added an optional argument that defaults to strict and gets passed along. I've updated the primary test to verify the argument passing, as well as that things get handled as specified in the documentation at https://docs.python.org/3.5/library/codecs.html This is off-topic, but is there any way I can submit a patch that allows a similar fix for stdin? Presently there is no way at all to pass malformed unicode through fileinput using stdin that I can find. ---------- keywords: +patch nosy: +Joseph Hackman Added file: http://bugs.python.org/file41777/issue25788.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25788> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com