summaryrefslogtreecommitdiff
path: root/docs/narr/renderers.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-19 21:35:37 -0600
committerMichael Merickel <michael@merickel.org>2018-11-19 21:35:37 -0600
commit8c943501e87bed7836bb9ec1b216a561cc3f6be6 (patch)
tree1008b955958d13fdb68dd6b5c8e2494347b3d094 /docs/narr/renderers.rst
parente5253db2bfe3fa42f03a6ef10f353674b497afb4 (diff)
downloadpyramid-8c943501e87bed7836bb9ec1b216a561cc3f6be6.tar.gz
pyramid-8c943501e87bed7836bb9ec1b216a561cc3f6be6.tar.bz2
pyramid-8c943501e87bed7836bb9ec1b216a561cc3f6be6.zip
rip out moar unicode prefixes
Diffstat (limited to 'docs/narr/renderers.rst')
-rw-r--r--docs/narr/renderers.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/narr/renderers.rst b/docs/narr/renderers.rst
index 493f808d5..6b4982e4b 100644
--- a/docs/narr/renderers.rst
+++ b/docs/narr/renderers.rst
@@ -145,8 +145,7 @@ used in the ``renderer`` attribute of view configurations.
The ``string`` renderer renders a view callable result to a string. If a view
callable returns a non-Response object, and the ``string`` renderer is
associated in that view's configuration, the result will be to run the object
-through the Python ``str`` function to generate a string. Note that if a
-Unicode object is returned by the view callable, it is not ``str()``-ified.
+through the Python ``str`` function to generate a string.
Here's an example of a view that returns a dictionary. If the ``string``
renderer is specified in the configuration for this view, the view will render
@@ -496,7 +495,7 @@ interface. A typical class that follows this setup is as follows:
def __call__(self, value, system):
""" Call the renderer implementation with the value
and the system value passed in as arguments and return
- the result (a string or unicode object). The value is
+ the result (a bytes or string object). The value is
the return value of a view. The system value is a
dictionary containing available system values
(e.g., view, context, and request). """