Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87f6c22

Browse files
committed
Issue #19676: Tweak documentation a bit.
* Updated version info to 3.5 * Fixed a markup error * Added a versionadded directive to namereplace_errors documentation
1 parent 6a11e5e commit 87f6c22

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/c-api/codec.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ Registry API for Unicode encoding error handlers
118118
119119
.. c:function:: PyObject* PyCodec_NameReplaceErrors(PyObject *exc)
120120
121-
Replace the unicode encode error with `\N{...}` escapes.
121+
Replace the unicode encode error with ``\N{...}`` escapes.
122122
123-
.. versionadded: 3.4
123+
.. versionadded:: 3.5

Doc/library/codecs.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ functions which use :func:`lookup` for the codec lookup:
239239
Implements the ``namereplace`` error handling (for encoding only): the
240240
unencodable character is replaced by a ``\N{...}`` escape sequence.
241241

242+
.. versionadded:: 3.5
243+
242244
To simplify working with encoded files or stream, the module also defines these
243245
utility functions:
244246

@@ -394,7 +396,7 @@ schemes:
394396
.. versionchanged:: 3.4
395397
The ``'surrogatepass'`` error handlers now works with utf-16\* and utf-32\* codecs.
396398

397-
.. versionadded:: 3.4
399+
.. versionadded:: 3.5
398400
The ``'namereplace'`` error handler.
399401

400402
The set of allowed values can be extended via :meth:`register_error`.

0 commit comments

Comments
 (0)