summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscoder <none@none>2007-06-19 17:22:30 +0200
committerscoder <none@none>2007-06-19 17:22:30 +0200
commitec8afecba42f99c50172d8facb7f7343abb864bf (patch)
tree734c4143e4d4eb271cc386e944aa187c07419160 /src
parent103040cee534bf8af9cd77216a86acd02f3e8911 (diff)
downloadpython-lxml-ec8afecba42f99c50172d8facb7f7343abb864bf.tar.gz
[svn r2488] objectify: support '0' and '1' as boolean values
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/lxml/objectify.pyx2
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):