[issue10588] imp.find_module raises unexpected SyntaxError

Benjamin Peterson report at bugs.python.org
Wed Aug 10 22:23:13 CEST 2011


Benjamin Peterson <benjamin at python.org> added the comment:

The reason for this is that file_module tries to detect the encoding of the file to set the encoding for the opened file. IMO, it should just return a file in binary mode.

----------
nosy: +benjamin.peterson, haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10588>
_______________________________________


More information about the Python-bugs-list mailing list