summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-01-25 21:47:45 -0800
committerBenjamin Peterson <benjamin@python.org>2018-01-25 21:47:45 -0800
commitedb7d0051202280d44939fd48863d244fe7b2c2b (patch)
treecf5b2bffc5be64b654afcce27f1225183f7f195d /documentation
parent877dbe88554fdd48455d00b51b2e728d59ef3436 (diff)
downloadsix-git-edb7d0051202280d44939fd48863d244fe7b2c2b.tar.gz
documentation tweaks
Diffstat (limited to 'documentation')
-rw-r--r--documentation/index.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/documentation/index.rst b/documentation/index.rst
index 86c3a03..e86e3f8 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -435,20 +435,20 @@ string data in all Python versions.
.. function:: ensure_binary(s, encoding='utf-8', errors='strict')
- A helper function to ensure output is :data:`binary_type`. ``encoding``, ``errors``
- are the same as :meth:`py3:str.encode`
+ Coerce *s* to :data:`binary_type`. *encoding*, *errors* are the same as
+ :meth:`py3:str.encode`
.. function:: ensure_str(s, encoding='utf-8', errors='strict')
- A helper function to ensure output is ``str``. ``encoding``, ``errors``
- are the same :meth:`py3:str.encode`
+ Coerce *s* to ``str``. ``encoding``, ``errors`` are the same
+ :meth:`py3:str.encode`
.. function:: ensure_text(s, encoding='utf-8', errors='strict')
- A helper function to ensure output is :data:`text_type`. ``encoding``, ``errors``
- are the same as :meth:`py3:str.encode`
+ Coerce *s* to :data:`text_type`. *encoding*, *errors* are the same as
+ :meth:`py3:str.encode`
.. data:: StringIO