[issue41497] Potential UnicodeDecodeError in dis
Serhiy Storchaka
report at bugs.python.org
Fri Aug 7 01:53:16 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue41497>
_______________________________________
More information about the Python-bugs-list
mailing list