diff options
Diffstat (limited to 'python/types.c')
-rw-r--r-- | python/types.c | 3 |
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; |