From: Alex Willmer Date: Thu, 2 Oct 2025 19:50:36 +0000 (+0100) Subject: gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError... X-Git-Tag: v3.15.0a1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb114cf49742a3679d56aa4ac3f341839c641221;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index 8bba6700930b..b21ecdaede62 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -310,7 +310,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.