[issue3773] Check for errors when using PyTokenizer_FindEncoding()

Amaury Forgeot d'Arc report at bugs.python.org
Fri Sep 5 00:48:16 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

pgen does not exist on Windows...

What if I simply remove the call to PyErr_NoMemory?
It is not strictly necessary: the function already returns NULL without
an exception set, for example when the file cannot be opened.

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


More information about the Python-bugs-list mailing list