diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-15 16:26:04 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-15 16:26:04 +0000 |
commit | a7987f374fc195d0355f45054872a5589d9483ad (patch) | |
tree | e8458831bd937676e56f4676aeb195568a95e232 /python/xml/py_xml.c | |
parent | 83b36c2a0532661699345a49ed4ba15ebef2adad (diff) | |
download | lasso-a7987f374fc195d0355f45054872a5589d9483ad.tar.gz lasso-a7987f374fc195d0355f45054872a5589d9483ad.tar.xz lasso-a7987f374fc195d0355f45054872a5589d9483ad.zip |
*** empty log message ***
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r-- | python/xml/py_xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |