Serhiy Storchaka <[email protected]> added the comment:
Good catch. Yes, when read Python source files you should either open them in binary mode if reading bytes is enough for use, or open them with tokenize.open() if we need string data, or use token.detect_encoding() and pass the result to open(). ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41497> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
