Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation

Patch by Xiang Zhang.
This commit is contained in:
Berker Peksag 2016-10-17 00:45:56 +03:00
parent 11194f7e0f
commit 90e028970a

View File

@ -793,7 +793,7 @@ system.
Encode a Unicode object to the current locale encoding. The Encode a Unicode object to the current locale encoding. The
supported error handlers are ``"strict"`` and ``"surrogateescape"`` supported error handlers are ``"strict"`` and ``"surrogateescape"``
(:pep:`383`). The encoder uses ``"strict"`` error handler if (: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. contain embedded null characters.
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to