summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-02 18:30:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-02 18:30:35 (GMT)
commitb3648576cd76232e618ecc227541c7b722355f6e (patch)
tree7e3348aca1818955eba0c1d88d8934118f5c8473 /Doc
parent1edebef724012a4dff48ec3eb2b41981b1610fdd (diff)
parentcc164232aa736006d3c45ee76680c14738e2f9e6 (diff)
downloadcpython-b3648576cd76232e618ecc227541c7b722355f6e.zip
cpython-b3648576cd76232e618ecc227541c7b722355f6e.tar.gz
cpython-b3648576cd76232e618ecc227541c7b722355f6e.tar.bz2
Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4().
Original patch by Xiang Zhang.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/unicode.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 0835477..d1015dd 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -635,7 +635,7 @@ APIs:
Copy the string *u* into a UCS4 buffer, including a null character, if
*copy_null* is set. Returns *NULL* and sets an exception on error (in
- particular, a :exc:`ValueError` if *buflen* is smaller than the length of
+ particular, a :exc:`SystemError` if *buflen* is smaller than the length of
*u*). *buffer* is returned on success.
.. versionadded:: 3.3