diff options
author | Mike Hommey <glandium@debian.org> | 2006-04-29 21:57:40 +0200 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2006-04-29 21:57:40 +0200 |
commit | 07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e (patch) | |
tree | 7b377fd8e804a983cb2c57a43be1093ef179c5fd /python/types.c | |
parent | c5d565931c4823dc8f62fffcb65aecfec516f7b9 (diff) | |
download | libxml2-07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e.tar.gz |
Load /tmp/libxml2-2.6.24 intoupstream/2.6.24.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'python/types.c')
-rw-r--r-- | python/types.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/types.c b/python/types.c index 329d270..8a6a9a0 100644 --- a/python/types.c +++ b/python/types.c @@ -398,7 +398,9 @@ libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj) case XPATH_RANGE: case XPATH_LOCATIONSET: default: +#ifdef DEBUG printf("Unable to convert XPath object type %d\n", obj->type); +#endif Py_INCREF(Py_None); ret = Py_None; } @@ -443,7 +445,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) cur = NULL; if (PyCObject_Check(node)) { +#ifdef DEBUG printf("Got a CObject\n"); +#endif cur = PyxmlNode_Get(node); } else if (PyInstance_Check(node)) { PyInstanceObject *inst = (PyInstanceObject *) node; @@ -463,7 +467,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) } } } else { +#ifdef DEBUG printf("Unknown object in Python return list\n"); +#endif } if (cur != NULL) { xmlXPathNodeSetAdd(set, cur); @@ -471,7 +477,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) } ret = xmlXPathWrapNodeSet(set); } else { +#ifdef DEBUG printf("Unable to convert Python Object to XPath"); +#endif } Py_DECREF(obj); return (ret); |