From 07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sat, 29 Apr 2006 21:57:40 +0200 Subject: Load /tmp/libxml2-2.6.24 into libxml2/branches/upstream/current. --- python/types.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/types.c') 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); -- cgit v1.2.3