From ea53ceaf7e44ba4fbb5c818ae31370932f47774e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 7 Apr 2012 23:26:05 +0200 Subject: code cleanup: replace call to PyErr_NoMemory() by explicit exception --- src/lxml/python.pxd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lxml/python.pxd') diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index 27b9f895..af857caa 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -88,8 +88,7 @@ cdef extern from "Python.h": cdef void* PyMem_Realloc(void* p, size_t size) cdef void PyMem_Free(void* p) - # these two always return NULL to pass on the exception - cdef object PyErr_NoMemory() + # always returns NULL to pass on the exception cdef object PyErr_SetFromErrno(object type) cdef PyThreadState* PyEval_SaveThread() -- cgit v1.2.1