diff options
author | scoder <none@none> | 2007-06-19 17:22:30 +0200 |
---|---|---|
committer | scoder <none@none> | 2007-06-19 17:22:30 +0200 |
commit | ec8afecba42f99c50172d8facb7f7343abb864bf (patch) | |
tree | 734c4143e4d4eb271cc386e944aa187c07419160 | |
parent | 103040cee534bf8af9cd77216a86acd02f3e8911 (diff) | |
download | python-lxml-ec8afecba42f99c50172d8facb7f7343abb864bf.tar.gz |
[svn r2488] objectify: support '0' and '1' as boolean values
--HG--
branch : trunk
-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): |