Skip to content

Commit 0db25d0

Browse files
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent f75be10 commit 0db25d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/deprecations/c-api-pending-removal-in-3.15.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Pending removal in Python 3.15
1616
Use :c:func:`PyCodec_Decode` instead; Note that some codecs (for example, "base64")
1717
may return a type other than :class:`str`, such as :class:`bytes`.
1818
* :c:func:`!PyUnicode_AsEncodedObject`:
19-
Use :c:func:`PyCodec_Decode` instead.
19+
Use :c:func:`PyCodec_Encode` instead.
2020
* :c:func:`!PyUnicode_AsEncodedUnicode`:
21-
Use :c:func:`PyCodec_Decode` instead; Note that some codecs (for example, "base64")
22-
may return a type other than :class:`str`, such as :class:`bytes`.
21+
Use :c:func:`PyCodec_Encode` instead; Note that some codecs (for example, "base64")
22+
may return a type other than :class:`bytes`, such as :class:`str`.
2323
* Python initialization functions, deprecated in Python 3.13:
2424

2525
* :c:func:`Py_GetPath`:

0 commit comments

Comments
 (0)