File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
242244To simplify working with encoded files or stream, the module also defines these
243245utility 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
400402The set of allowed values can be extended via :meth: `register_error `.
You can’t perform that action at this time.
0 commit comments