Skip to content

Commit 7f87b05

Browse files
committed
update warning
1 parent ae0e0c3 commit 7f87b05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/hashlib.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ accessible by name via :func:`new`. See :data:`algorithms_available`.
9494
OpenSSL does not provide we fall back to a verified implementation from
9595
the `HACL\* project`_.
9696

97-
.. deprecated-removed:: 3.15 3.17
98-
The undocumented ``string`` keyword parameter in :func:`new` and hash
99-
function constructors such as :func:`md5` is deprecated.
100-
Use the ``data`` keyword parameter instead, or simply pass the data to hash
101-
as a positional argument.
97+
.. deprecated-removed:: 3.15 3.19
98+
The undocumented ``string`` keyword parameter in :func:`!_hashlib.new`
99+
and hash-named constructors such as :func:`!_md5.md5` is deprecated.
100+
Prefer passing the initial data as a positional argument for maximum
101+
backwards compatibility.
102102

103103

104104
Usage

0 commit comments

Comments
 (0)