summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 4085ccaf..3a64a13e 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -160,17 +160,17 @@ PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
PyObject *node_get_child(PyObject *self, PyObject *args) {
PyObject *node_obj;
- const xmlChar *name;
+ const xmlChar *name, *href;
LassoNode *ret;
- if (CheckArgs(args, "OS:node_get_child")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:node_get_child",
- &node_obj, &name))
+ if (CheckArgs(args, "OSs:node_get_child")) {
+ if(!PyArg_ParseTuple(args, (char *) "Osz:node_get_child",
+ &node_obj, &name, &href))
return NULL;
}
else return NULL;
- ret = lasso_node_get_child(LassoNode_get(node_obj), name);
+ ret = lasso_node_get_child(LassoNode_get(node_obj), name, href);
return (LassoNode_wrap(ret));
}