summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hammel <jhammel@mozilla.com>2013-12-19 20:05:25 -0800
committerJeff Hammel <jhammel@mozilla.com>2013-12-19 20:05:25 -0800
commit13fe09c2b4e3d9eb56eb99ceb10912e3cbc12693 (patch)
tree53739c145f3b11f4da1c896886c2f898ec288fcb
parent928dd67242b1e9b9b64312c0e2c388ef51093cc1 (diff)
downloadtempita-13fe09c2b4e3d9eb56eb99ceb10912e3cbc12693.tar.gz
py3 unicode
-rw-r--r--docs/index.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/index.txt b/docs/index.txt
index a6cfd05..2d9b95c 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -119,11 +119,11 @@ attribute. It will try to use that encoding whenever ``unicode`` and
``str`` objects are mixed in the template. E.g.::
>>> tmpl = tempita.Template(u'Hi {{name}}')
- >>> tmpl.substitute(name='Jos\xc3\xa9')
- u'Hi Jos\xe9'
+ >>> print (tmpl.substitute(name='Jos\xc3\xa9'))
+ Hi José
>>> tmpl = tempita.Template('Hi {{name}}')
- >>> tmpl.substitute(name=u'Jos\xe9')
- 'Hi Jos\xc3\xa9'
+ >>> print (tmpl.substitute(name=u'Jos\xe9'))
+ Hi José
The default encoding is UTF8.