1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

try to allow compilation on old python version should fix #398125 Daniel

* python/types.c: try to allow compilation on old python version
  should fix #398125
Daniel

svn path=/trunk/; revision=3632
This commit is contained in:
Daniel Veillard
2007-06-12 10:04:37 +00:00
parent fcd02adb71
commit db67015afe
2 changed files with 7 additions and 1 deletions

View File

@@ -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;