summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Joukl <holger.joukl@gmx.de>2016-04-08 13:27:22 +0200
committerHolger Joukl <holger.joukl@gmx.de>2016-04-08 13:27:22 +0200
commit88c535f0df7f2c5bd8fb9c9d478e1b0fb4f85657 (patch)
tree8289cae490a24362ab80075a721b5a5672379a13
parente70558389119316f9733711a515d247fc8aa0347 (diff)
downloadpython-lxml-88c535f0df7f2c5bd8fb9c9d478e1b0fb4f85657.tar.gz
Fix doctest for Python 2.6 by using a float value with shorter repr().
-rw-r--r--doc/objectify.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/objectify.txt b/doc/objectify.txt
index 01768a20..65ef25f3 100644
--- a/doc/objectify.txt
+++ b/doc/objectify.txt
@@ -308,7 +308,7 @@ To simplify the generation of trees even further, you can use the E-factory:
>>> E = objectify.E
>>> root = E.root(
... E.a(5),
- ... E.b(6.1),
+ ... E.b(6.21),
... E.c(True),
... E.d("how", tell="me")
... )
@@ -316,7 +316,7 @@ To simplify the generation of trees even further, you can use the E-factory:
>>> print(etree.tostring(root, pretty_print=True))
<root xmlns:py="http://codespeak.net/lxml/objectify/pytype">
<a py:pytype="int">5</a>
- <b py:pytype="float">6.1</b>
+ <b py:pytype="float">6.21</b>
<c py:pytype="bool">true</c>
<d py:pytype="str" tell="me">how</d>
</root>