X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=libxml2-python3-unicode-errors.patch;fp=libxml2-python3-unicode-errors.patch;h=61cc4b61f729edb1112b02e30d5ce52fda3f079c;hb=b55c26e2087d3645adee6e6cbbd90132fd8728dd;hp=e87dcdedf88ced34b3a75323d1b8c9698cc5edce;hpb=e3a6892f6721ef588a02189d5bb3f058dfd14de4;p=packages%2Flibxml2.git diff --git a/libxml2-python3-unicode-errors.patch b/libxml2-python3-unicode-errors.patch index e87dcde..61cc4b6 100644 --- a/libxml2-python3-unicode-errors.patch +++ b/libxml2-python3-unicode-errors.patch @@ -26,7 +26,7 @@ Index: libxml2-2.9.5/python/libxml.c - message = libxml_charPtrConstWrap(str); + message = libxml_charPtrConstWrap(ptr); PyTuple_SetItem(list, 1, message); - result = PyEval_CallObject(libxml_xmlPythonErrorFuncHandler, list); + result = PyObject_CallObject(libxml_xmlPythonErrorFuncHandler, list); + /* Forget any errors caused in the error handler. */ + PyErr_Clear(); Py_XDECREF(list);