]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError...
authorAlex Willmer <alex@moreati.org.uk>
Thu, 2 Oct 2025 19:50:36 +0000 (20:50 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Oct 2025 19:50:36 +0000 (12:50 -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

Doc/library/hashlib.rst

index 8bba6700930bf4ec65bf9bdbe5ae152107eac711..b21ecdaede622a754615b91315e88d8b422d1c41 100644 (file)
@@ -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.