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 | |
| parent | 83b36c2a0532661699345a49ed4ba15ebef2adad (diff) | |
| download | lasso-a7987f374fc195d0355f45054872a5589d9483ad.tar.gz lasso-a7987f374fc195d0355f45054872a5589d9483ad.tar.xz lasso-a7987f374fc195d0355f45054872a5589d9483ad.zip | |
*** empty log message ***
Diffstat (limited to 'python')
| -rw-r--r-- | python/lasso.py | 2 | ||||
| -rw-r--r-- | python/xml/py_xml.c | 6 |
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) { |
