From 4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 16 Sep 2016 17:31:06 +0300 Subject: Issue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed --- Doc/c-api/bytes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Doc/c-api') diff --git a/Doc/c-api/bytes.rst b/Doc/c-api/bytes.rst index dcd7088629..ee42f854ed 100644 --- a/Doc/c-api/bytes.rst +++ b/Doc/c-api/bytes.rst @@ -198,5 +198,5 @@ called with a non-bytes parameter. desired. On success, *\*bytes* holds the resized bytes object and ``0`` is returned; the address in *\*bytes* may differ from its input value. If the reallocation fails, the original bytes object at *\*bytes* is deallocated, - *\*bytes* is set to *NULL*, a memory exception is set, and ``-1`` is + *\*bytes* is set to *NULL*, :exc:`MemoryError` is set, and ``-1`` is returned. -- cgit v1.2.1