Skip to content

Commit aa95718

Browse files
committed
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.
1 parent 75b1afe commit aa95718

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/library/hashlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ a file or file-like object.
310310
.. versionadded:: 3.11
311311

312312
.. versionchanged:: 3.14
313-
Now raises a :exc:`BlockingIOError` if the file is opened in blocking
313+
Now raises a :exc:`BlockingIOError` if the file is opened in non-blocking
314314
mode. Previously, spurious null bytes were added to the digest.
315315

316316

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix :func:`hashlib.file_digest()` versionchanged description of
2+
:exc:`BlockingIOError`

0 commit comments

Comments
 (0)