[issue3594] PyTokenizer_FindEncoding() never succeeds

Brett Cannon report at bugs.python.org
Tue Aug 19 07:25:16 CEST 2008


Brett Cannon <brett at python.org> added the comment:

Attached is a patch that fixes where the error occurs. By opening the
file by either file name or file descriptor, the problem goes away. Once
this patch is accepted then PyErr_Occurred() should be added to all uses
of PyTokenizer_FindEncoding().

----------
keywords: +patch
Added file: http://bugs.python.org/file11153/fix_findencoding.diff

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


More information about the Python-bugs-list mailing list