summaryrefslogtreecommitdiff
path: root/python/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/types.c')
-rw-r--r--python/types.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/types.c b/python/types.c
index 5c5dcca..9a17749 100644
--- a/python/types.c
+++ b/python/types.c
@@ -525,6 +525,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj));
+#ifdef PyBool_Check
} else if PyBool_Check (obj) {
if (obj == Py_True) {
@@ -533,7 +534,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj)
else {
ret = xmlXPathNewBoolean(0);
}
-
+#endif
} else if PyString_Check
(obj) {
xmlChar *str;