]> granicus.if.org Git - python/commit
Follow-up of #3773: In PyTokenizer_FindEncoding, remove the call to PyErr_NoMemory...
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 4 Sep 2008 22:53:19 +0000 (22:53 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 4 Sep 2008 22:53:19 +0000 (22:53 +0000)
commit9252287f2c9bc09fdc6bc729e13ac63935e4976e
tree2593a9d4c32eff456f2229fcd5344e0ca85e6746
parent1b933ed50aef2c31e003a001cef8647244ebfa0e
Follow-up of #3773: In PyTokenizer_FindEncoding, remove the call to PyErr_NoMemory when PyMem_MALLOC() fails.
It is not stritly necessary, the function may already return NULL without an exception set,
for example when the file cannot be opened.

Discussed with Benjamin Peterson.
Parser/tokenizer.c