Sunny added the comment: I've updated my patch with the review changes and tests.
tokenize.detect_encoding throws a TypeError if the file object passed to it is in text mode. However, i've realized catching this is not necessary as i now check for TextIOBase instead of just StringIO before. ---------- Added file: http://bugs.python.org/file31864/myfirst_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1185124> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com