mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
bpo-33604: Raise TypeError on missing hmac arg. (GH-16805)
Also updates the documentation to clarify the situation surrounding the digestmod parameter that is required despite its position in the argument list as of 3.8.0 as well as removing old python2 era references to "binary strings". We indavertently had this raise ValueError in 3.8.0 for the missing arg. This is not considered an API change as no reasonable code would be catching this missing argument error in order to handle it.
This commit is contained in:
parent
d8ca2354ed
commit
f33c57d5c7
4 changed files with 43 additions and 28 deletions
|
|
@ -0,0 +1,3 @@
|
|||
Fixed `hmac.new` and `hmac.HMAC` to raise TypeError instead of ValueError
|
||||
when the digestmod parameter, now required in 3.8, is omitted. Also
|
||||
clarified the hmac module documentation and docstrings.
|
||||
Loading…
Add table
Add a link
Reference in a new issue