From 18b4963b3f52edfbe9064ee57fc745e03c8ca823 Mon Sep 17 00:00:00 2001 From: scoder Date: Thu, 7 Dec 2006 08:59:52 +0100 Subject: [svn r2089] ElementTree.write() did not raise an exception when the file was not writable --HG-- branch : trunk --- src/lxml/python.pxd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lxml/python.pxd') diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index afe534f9..13c45e24 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -73,7 +73,10 @@ cdef extern from "Python.h": cdef void* PyMem_Malloc(size_t size) cdef void* PyMem_Realloc(void* p, size_t size) cdef void PyMem_Free(void* p) - cdef object PyErr_NoMemory() # always returns NULL to pass on exception + + # these two always return NULL to pass on the exception + cdef object PyErr_NoMemory() + cdef object PyErr_SetFromErrno(object type) ctypedef enum PyGILState_STATE: PyGILState_LOCKED -- cgit v1.2.1