summaryrefslogtreecommitdiff
path: root/pystache/renderer.py
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-04-05 07:44:34 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-04-08 14:20:59 -0700
commit63d6dd4979c8c813172fb78fae30c72ecba1c2ed (patch)
tree805abf07dee810790cd6aa7e605ff4dcfbff30d5 /pystache/renderer.py
parent93a58fc02e2b0b990147ab6cd42b9e3a3a4be3b1 (diff)
downloadpystache-63d6dd4979c8c813172fb78fae30c72ecba1c2ed.tar.gz
Python 3 support: use html module instead of cgi.escape().
Python 3.2 deprecates cgi.escape() and introduces the html module in its place.
Diffstat (limited to 'pystache/renderer.py')
-rw-r--r--pystache/renderer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pystache/renderer.py b/pystache/renderer.py
index 5bd2a3f..ef6124a 100644
--- a/pystache/renderer.py
+++ b/pystache/renderer.py
@@ -64,10 +64,10 @@ class Renderer(object):
this class will only pass it unicode strings. The constructor
assigns this function to the constructed instance's escape()
method.
- The argument defaults to `cgi.escape(s, quote=True)`. To
- disable escaping entirely, one can pass `lambda u: u` as the
- escape function, for example. One may also wish to consider
- using markupsafe's escape function: markupsafe.escape().
+ To disable escaping entirely, one can pass `lambda u: u`
+ as the escape function, for example. One may also wish to
+ consider using markupsafe's escape function: markupsafe.escape().
+ This argument defaults to the package default.
file_encoding: the name of the default encoding to use when reading
template files. All templates are converted to unicode prior