diff options
| author | scoder <none@none> | 2006-12-07 08:59:52 +0100 |
|---|---|---|
| committer | scoder <none@none> | 2006-12-07 08:59:52 +0100 |
| commit | 18b4963b3f52edfbe9064ee57fc745e03c8ca823 (patch) | |
| tree | a2b30f9a1477150c1575661b754f0cae168cf5bd /src/lxml/python.pxd | |
| parent | d5437a577f334935cace8a3a780abe38478863d8 (diff) | |
| download | python-lxml-18b4963b3f52edfbe9064ee57fc745e03c8ca823.tar.gz | |
[svn r2089] ElementTree.write() did not raise an exception when the file was not writable
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
| -rw-r--r-- | src/lxml/python.pxd | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
