1
0
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:
Daniel Veillard
2002-02-02 12:19:46 +00:00
parent 4cf998a639
commit 7fd7a94aa8
3 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -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