diff options
author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2018-05-22 22:55:31 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2018-05-22 22:55:31 (GMT) |
commit | 8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4 (patch) | |
tree | aa6b1dd52bf5cbbbcaaa00c954ec9d67b7153df7 /Lib/hmac.py | |
parent | e8eb6cb7920ded66abc5d284319a8539bdc2bae3 (diff) | |
download | cpython-8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4.zip cpython-8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4.tar.gz cpython-8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4.tar.bz2 |
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...
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r-- | Lib/hmac.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py index 93c084e..43b7212 100644 --- a/Lib/hmac.py +++ b/Lib/hmac.py @@ -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): |