[Python-checkins] cpython (3.5): Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation
berker.peksag
python-checkins at python.org
Sun Oct 16 17:46:31 EDT 2016
https://hg.python.org/cpython/rev/a4889719e3c2
changeset: 104511:a4889719e3c2
branch: 3.5
parent: 104506:22137bc7e260
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Oct 17 00:45:56 2016 +0300
summary:
Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation
Patch by Xiang Zhang.
files:
Doc/c-api/unicode.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -793,7 +793,7 @@
Encode a Unicode object to the current locale encoding. The
supported error handlers are ``"strict"`` and ``"surrogateescape"``
(:pep:`383`). The encoder uses ``"strict"`` error handler if
- *errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot
+ *errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot
contain embedded null characters.
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list