mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-17 18:21:05 +03:00
fixed a stupid bug when renaming a function Daniel
* python/libxml.c python/libxml.py: fixed a stupid bug when renaming a function Daniel
This commit is contained in:
@ -371,7 +371,7 @@ libxml_xpathCallbacksInitialize(void) {
|
||||
}
|
||||
|
||||
PyObject *
|
||||
libxml_registerXPathFunction(PyObject *self, PyObject *args) {
|
||||
libxml_xmlRegisterXPathFunction(PyObject *self, PyObject *args) {
|
||||
PyObject *py_retval;
|
||||
int c_retval = 0;
|
||||
xmlChar *name;
|
||||
@ -946,7 +946,6 @@ static PyMethodDef libxmlMethods[] = {
|
||||
{ "parent", libxml_parent, METH_VARARGS },
|
||||
{ "type", libxml_type, METH_VARARGS },
|
||||
{ "doc", libxml_doc, METH_VARARGS },
|
||||
{ "registerXPathFunction", libxml_registerXPathFunction, METH_VARARGS }
|
||||
};
|
||||
|
||||
void init_libxml(void) {
|
||||
|
@ -145,7 +145,7 @@ def xpathObjectRet(o):
|
||||
# register an XPath function
|
||||
#
|
||||
def registerXPathFunction(ctxt, name, ns_uri, f):
|
||||
ret = _libxml.registerXPathFunction(ctxt, name, ns_uri, f)
|
||||
ret = _libxml.xmlRegisterXPathFunction(ctxt, name, ns_uri, f)
|
||||
|
||||
#
|
||||
# Everything below this point is automatically generated
|
||||
|
Reference in New Issue
Block a user