]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `Blocking...
authorAlex Willmer <alex@moreati.org.uk>
Fri, 3 Oct 2025 00:17:55 +0000 (01:17 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Oct 2025 00:17:55 +0000 (17:17 -0700)
* 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)

Doc/library/hashlib.rst

index e8298d12972d5a34ee6114889b1fad1f8f96b7cb..862bb91b06a50e4df1012da7ecb6715680b786da 100644 (file)
@@ -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.