diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-10-16 21:45:56 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-10-16 21:45:56 (GMT) |
commit | 90e028970a3217bfbd92c3db8591ce2b0c307c14 (patch) | |
tree | 9190f26651fe596cfd7c112f387b05d3479c02b3 | |
parent | 11194f7e0fc5d4f06a081bf50d08c7e1c35a60c3 (diff) | |
download | cpython-90e028970a3217bfbd92c3db8591ce2b0c307c14.zip cpython-90e028970a3217bfbd92c3db8591ce2b0c307c14.tar.gz cpython-90e028970a3217bfbd92c3db8591ce2b0c307c14.tar.bz2 |
Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation
Patch by Xiang Zhang.
-rw-r--r-- | 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 index 3f6a604..12a861e 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -793,7 +793,7 @@ system. 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 |