Skip to content

Commit a5bb7aa

Browse files
Neob91benjaminp
andauthored
Fix ensure_text docs. (#326)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 3a3db75 commit a5bb7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ string data in all Python versions.
452452
.. function:: ensure_text(s, encoding='utf-8', errors='strict')
453453

454454
Coerce *s* to :data:`text_type`. *encoding*, *errors* are the same as
455-
:meth:`py3:str.encode`
455+
:meth:`py3:bytes.decode`
456456

457457

458458
.. data:: StringIO

0 commit comments

Comments
 (0)