[3.11] gh-112999: Replace the outdated "deprecated" directives with "versionchanged" (GH-113000) (GH-113020)

(cherry picked from commit fe9991bb67)
This commit is contained in:
Serhiy Storchaka 2023-12-12 19:17:35 +02:00 committed by GitHub
parent 8298f44136
commit f78f6b6e89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 19 deletions

View file

@ -53,7 +53,7 @@ class HMAC:
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
if not digestmod:
raise TypeError("Missing required parameter 'digestmod'.")
raise TypeError("Missing required argument 'digestmod'.")
if _hashopenssl and isinstance(digestmod, (str, _functype)):
try: