Author: scoder
Date: Tue Jun 19 18:00:06 2007
New Revision: 44381
Modified:
lxml/branch/lxml-1.3/src/lxml/objectify.pyx
Log:
objectify: support '0' and '1' as boolean values
Modified: lxml/branch/lxml-1.3/src/lxml/objectify.pyx
==============================================================================
--- lxml/branch/lxml-1.3/src/lxml/objectify.pyx (original)
+++ lxml/branch/lxml-1.3/src/lxml/objectify.pyx Tue Jun 19 18:00:06 2007
@@ -759,7 +759,7 @@
return self.__nonzero__()
def __checkBool(s):
- if s != 'true' and s != 'false':
+ if s != 'true' and s != 'false' and s != '1' and s != '0':
raise ValueError
cdef object _strValueOf(obj):
|