summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py2
-rw-r--r--python/xml/py_xml.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/python/lasso.py b/python/lasso.py
index a276ef12..dd41d7c5 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -179,7 +179,7 @@ class Node:
#self._o = lassomod.(size)
if self._o is None: raise Error('lasso_node_new() failed')
def dump(self, encoding, format):
- lassomod.node_dump(self, encoding, format)
+ return lassomod.node_dump(self, encoding, format)
def destroy(self):
lassomod.node_unref(self)
def get_attr_value(self, name):
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) {