changeset: 93584:b6fab008d63a user: Berker Peksag date: Tue Nov 25 18:59:20 2014 +0200 files: Doc/c-api/codec.rst Doc/library/codecs.rst description: Issue #19676: Tweak documentation a bit. * Updated version info to 3.5 * Fixed a markup error * Added a versionadded directive to namereplace_errors documentation diff -r 7da2288183d1 -r b6fab008d63a Doc/c-api/codec.rst --- a/Doc/c-api/codec.rst Tue Nov 25 17:21:43 2014 +0100 +++ b/Doc/c-api/codec.rst Tue Nov 25 18:59:20 2014 +0200 @@ -118,6 +118,6 @@ .. c:function:: PyObject* PyCodec_NameReplaceErrors(PyObject *exc) - Replace the unicode encode error with `\N{...}` escapes. + Replace the unicode encode error with ``\N{...}`` escapes. - .. versionadded: 3.4 + .. versionadded:: 3.5 diff -r 7da2288183d1 -r b6fab008d63a Doc/library/codecs.rst --- a/Doc/library/codecs.rst Tue Nov 25 17:21:43 2014 +0100 +++ b/Doc/library/codecs.rst Tue Nov 25 18:59:20 2014 +0200 @@ -239,6 +239,8 @@ Implements the ``namereplace`` error handling (for encoding only): the unencodable character is replaced by a ``\N{...}`` escape sequence. + .. versionadded:: 3.5 + To simplify working with encoded files or stream, the module also defines these utility functions: @@ -394,7 +396,7 @@ .. versionchanged:: 3.4 The ``'surrogatepass'`` error handlers now works with utf-16\* and utf-32\* codecs. -.. versionadded:: 3.4 +.. versionadded:: 3.5 The ``'namereplace'`` error handler. The set of allowed values can be extended via :meth:`register_error`.