mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)
bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
This commit is contained in:
parent
e8eb6cb792
commit
8bb0b5b03c
4 changed files with 9 additions and 6 deletions
|
@ -39,8 +39,8 @@ class HMAC:
|
|||
A hashlib constructor returning a new hash object. *OR*
|
||||
A hash name suitable for hashlib.new().
|
||||
Defaults to hashlib.md5.
|
||||
Implicit default to hashlib.md5 is deprecated and will be
|
||||
removed in Python 3.6.
|
||||
Implicit default to hashlib.md5 is deprecated since Python
|
||||
3.4 and will be removed in Python 3.8.
|
||||
|
||||
Note: key and msg must be a bytes or bytearray objects.
|
||||
"""
|
||||
|
@ -50,7 +50,9 @@ class HMAC:
|
|||
|
||||
if digestmod is None:
|
||||
_warnings.warn("HMAC() without an explicit digestmod argument "
|
||||
"is deprecated.", PendingDeprecationWarning, 2)
|
||||
"is deprecated since Python 3.4, and will be removed "
|
||||
"in 3.8",
|
||||
DeprecationWarning, 2)
|
||||
digestmod = _hashlib.md5
|
||||
|
||||
if callable(digestmod):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue