Fix recent Python -builtin changes for C code
This commit is contained in:
parent
a39e2a07fb
commit
7dc5b224cb
1 changed files with 2 additions and 1 deletions
|
|
@ -11,9 +11,10 @@ wrapper##_closure(PyObject *a) { \
|
|||
sobj = (SwigPyObject *)a; \
|
||||
Py_XDECREF(sobj->dict); \
|
||||
if (sobj->own) { \
|
||||
PyObject *o; \
|
||||
PyObject *val = 0, *type = 0, *tb = 0; \
|
||||
PyErr_Fetch(&val, &type, &tb); \
|
||||
PyObject *o = wrapper(a, NULL); \
|
||||
o = wrapper(a, NULL); \
|
||||
if (!o) { \
|
||||
PyObject *deallocname = PyString_FromString(#wrapper); \
|
||||
PyErr_WriteUnraisable(deallocname); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue