summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-04-07 23:26:05 +0200
committerStefan Behnel <stefan_ml@behnel.de>2012-04-07 23:26:05 +0200
commitea53ceaf7e44ba4fbb5c818ae31370932f47774e (patch)
tree695f221d57d4242e707d3db252b7302d143502ad /src/lxml/python.pxd
parente4789f6d4b9f7ac76c77415dd71523b8fdf7a242 (diff)
downloadpython-lxml-ea53ceaf7e44ba4fbb5c818ae31370932f47774e.tar.gz
code cleanup: replace call to PyErr_NoMemory() by explicit exception
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd3
1 files changed, 1 insertions, 2 deletions
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()