diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-16 14:31:06 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-16 14:31:06 (GMT) |
commit | 4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5 (patch) | |
tree | b324021153abfe7835d6793a5ff6bacdae805131 /Doc/c-api/bytes.rst | |
parent | a4961e555b9b6b684f123cdbe426b4da22a1b460 (diff) | |
download | cpython-4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5.zip cpython-4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5.tar.gz cpython-4a72a7b6c4c95f7613486f0e4e20a3d4815a16c5.tar.bz2 |
Issue #25270: Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed
Diffstat (limited to 'Doc/c-api/bytes.rst')
-rw-r--r-- | Doc/c-api/bytes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/bytes.rst b/Doc/c-api/bytes.rst index dcd7088..ee42f85 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. |