From a7987f374fc195d0355f45054872a5589d9483ad Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Thu, 15 Apr 2004 16:26:04 +0000 Subject: *** empty log message *** --- python/xml/py_xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/xml') diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index d2816ceb..28094126 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -46,6 +46,7 @@ PyObject *node_dump(PyObject *self, PyObject *args) { PyObject *node_obj; xmlChar *encoding; int format; + xmlChar *ret; if (CheckArgs(args, "OSI:node_dump")) { if(!PyArg_ParseTuple(args, (char *) "Osi:node_dump", @@ -54,10 +55,9 @@ PyObject *node_dump(PyObject *self, PyObject *args) { } else return NULL; - lasso_node_dump(LassoNode_get(node_obj), encoding, format); + ret = lasso_node_dump(LassoNode_get(node_obj), encoding, format); - Py_INCREF(Py_None); - return (Py_None); + return (xmlCharPtr_wrap(ret)); } PyObject *node_get_attr_value(PyObject *self, PyObject *args) { -- cgit