From 2bec5d99f4b70233c46f94d31c697cbb263c64c1 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 2 Oct 2025 20:50:36 +0100 Subject: [PATCH] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496) * Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` The sentence was missing a negation and contradicted the other two descriptions in the same commit. I believe code behaviour is correct. * fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` * Remove unncessary NEWS.d entry (cherry picked from commit fb114cf49742a3679d56aa4ac3f341839c641221) Co-authored-by: Alex Willmer --- Doc/library/hashlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index 4818a4944a512a..855a6efc9f781c 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -303,7 +303,7 @@ a file or file-like object. .. versionadded:: 3.11 .. versionchanged:: 3.14 - Now raises a :exc:`BlockingIOError` if the file is opened in blocking + Now raises a :exc:`BlockingIOError` if the file is opened in non-blocking mode. Previously, spurious null bytes were added to the digest.