[3.13] gh-139495: Fix hashlib.file_digest() versionchanged description of BlockingIOError (GH-139496) (#139528)
Some checks failed
Tests / Change detection (push) Has been cancelled
Lint / lint (push) Has been cancelled
Tests / Docs (push) Has been cancelled
Tests / Check if the ABI has changed (push) Has been cancelled
Tests / Check if Autoconf files are up to date (push) Has been cancelled
Tests / Check if generated files are up to date (push) Has been cancelled
Tests / (push) Has been cancelled
Tests / Windows MSI (push) Has been cancelled
Tests / Ubuntu SSL tests with OpenSSL (push) Has been cancelled
Tests / Android (aarch64) (push) Has been cancelled
Tests / Android (x86_64) (push) Has been cancelled
Tests / WASI (push) Has been cancelled
Tests / Hypothesis tests on Ubuntu (push) Has been cancelled
Tests / Address sanitizer (push) Has been cancelled
Tests / Sanitizers (push) Has been cancelled
Tests / CIFuzz (push) Has been cancelled
Tests / All required checks pass (push) Has been cancelled

* 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 fb114cf497)
This commit is contained in:
Alex Willmer 2025-10-03 01:17:55 +01:00 committed by GitHub
parent a75676bf6c
commit bf9d410bf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.