summaryrefslogtreecommitdiffstats
path: root/Include/unicodeobject.h
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 /Include/unicodeobject.h
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 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 20331a3..643d10d 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -733,7 +733,7 @@ PyAPI_FUNC(Py_UCS4) _PyUnicode_FindMaxChar (
#endif
/* Copy the string into a UCS4 buffer including the null character if copy_null
- is set. Return NULL and raise an exception on error. Raise a ValueError if
+ is set. Return NULL and raise an exception on error. Raise a SystemError if
the buffer is smaller than the string. Return buffer on success.
buflen is the length of the buffer in (Py_UCS4) characters. */