1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +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

@ -1,3 +1,8 @@
Tue Jun 12 12:03:36 CEST 2007 Daniel Veillard <daniel@veillard.com>
* python/types.c: try to allow compilation on old python version
should fix #398125
Tue Jun 12 11:48:15 CEST 2007 Daniel Veillard <daniel@veillard.com>
* HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe

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;