diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-11-25 16:59:20 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-11-25 16:59:20 (GMT) |
commit | 87f6c2212edf14a8e485aac073584ce779da578c (patch) | |
tree | 34acecba7a1beffa23edbc9b60db00d82769d577 | |
parent | 6a11e5e1aed1cb3566edb41d9f4a6b490abb2581 (diff) | |
download | cpython-87f6c2212edf14a8e485aac073584ce779da578c.zip cpython-87f6c2212edf14a8e485aac073584ce779da578c.tar.gz cpython-87f6c2212edf14a8e485aac073584ce779da578c.tar.bz2 |
Issue #19676: Tweak documentation a bit.
* Updated version info to 3.5
* Fixed a markup error
* Added a versionadded directive to namereplace_errors documentation
-rw-r--r-- | Doc/c-api/codec.rst | 4 | ||||
-rw-r--r-- | Doc/library/codecs.rst | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Doc/c-api/codec.rst b/Doc/c-api/codec.rst index 5bb56e3..dfe3d43 100644 --- a/Doc/c-api/codec.rst +++ b/Doc/c-api/codec.rst @@ -118,6 +118,6 @@ Registry API for Unicode encoding error handlers .. 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 --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index ea4c450..06bce84 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -239,6 +239,8 @@ functions which use :func:`lookup` for the codec lookup: 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 @@ schemes: .. 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`. |