From: Alex Willmer Date: Fri, 3 Oct 2025 00:17:55 +0000 (+0100) Subject: [3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `Blocking... X-Git-Tag: v3.13.8~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf9d410bf3a5d7fb3bd1bbb36392957c4cbec276;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496) (#139528) * 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) --- diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index e8298d12972d..862bb91b06a5 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.13.4 - 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.