shiyao.ma added the comment: ITSM it's not the TextIOWrapper but the detect_encoding fails and throws an error.
So I wrapped a try/catch block around that. ---------- keywords: +patch nosy: +introom Added file: http://bugs.python.org/file38792/tokenize.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23840> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com