Commit 634ec27a authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 961bfc14
Wed Feb 22 16:09:10 CET 2006 Daniel Veillard <daniel@veillard.com>
* python/types.c: Nic Ferrier found debug statement left in the
XPath conversion code
Tue Feb 21 20:23:14 CET 2006 Daniel Veillard <daniel@veillard.com>
 
* doc/xmllint.1 doc/xmllint.xml: small man page improvements from
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment