summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-02-22 15:11:07 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-02-22 15:11:07 +0000
commit1255ae2e9a0380a04b113193185a33070dcf80f4 (patch)
treeed3c896624eb685700f3d43307fa66bade792ce7 /python
parent5b4f56032bf7d30df87d626e0c2edc7be677663a (diff)
downloadlibxslt-1255ae2e9a0380a04b113193185a33070dcf80f4.tar.gz
libxslt-1255ae2e9a0380a04b113193185a33070dcf80f4.tar.bz2
libxslt-1255ae2e9a0380a04b113193185a33070dcf80f4.zip
Nic Ferrier found debug statement left in the XPath conversion code Daniel
* python/types.c: Nic Ferrier found debug statement left in the XPath conversion code Daniel
Diffstat (limited to 'python')
-rw-r--r--python/types.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/types.c b/python/types.c
index 276ae35b..53bdd5cc 100644
--- a/python/types.c
+++ b/python/types.c
@@ -401,7 +401,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;
}
@@ -446,7 +448,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;
@@ -466,7 +470,9 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
}
}
} else {
+#ifdef DEBUG
printf("Unknown object in Python return list\n");
+#endif
}
if (cur != NULL) {
xmlXPathNodeSetAdd(set, cur);
@@ -474,7 +480,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);