From 4912a4b9cf9df6b13604c2c18f613eb29437be7f Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 14 Aug 2026 10:47:17 +0800 Subject: [PATCH] Correct decompression exception in zstd documentation (GH-154864) (cherry picked from commit 1bb7995e5a4f1b775fdb1c9cd374d3af7fe88096) Co-authored-by: cui fliter --- Doc/library/compression.zstd.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/compression.zstd.rst b/Doc/library/compression.zstd.rst index 25459640f8e2e9..6cb9a16141b416 100644 --- a/Doc/library/compression.zstd.rst +++ b/Doc/library/compression.zstd.rst @@ -342,7 +342,7 @@ Compressing and decompressing data in memory will be set to ``True``. Attempting to decompress data after the end of a frame will raise a - :exc:`ZstdError`. Any data found after the end of the frame is ignored + :exc:`EOFError`. Any data found after the end of the frame is ignored and saved in the :attr:`~.unused_data` attribute. .. attribute:: eof