diff options
-rw-r--r-- | src/lxml/objectify.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxml/objectify.pyx b/src/lxml/objectify.pyx index 895392b6..2533756a 100644 --- a/src/lxml/objectify.pyx +++ b/src/lxml/objectify.pyx @@ -759,7 +759,7 @@ cdef class BoolElement(ObjectifiedDataElement): 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): |