MCPcopy Index your code
hub / github.com/python/cpython / _hmac_new

Function _hmac_new

Lib/test/support/hashlib_helper.py:944–947  ·  view source on GitHub ↗
(key, msg=None, digestmod=None)

Source from the content-addressed store, hash-verified

942
943 @functools.wraps(wrapped := _hmac.new)
944 def _hmac_new(key, msg=None, digestmod=None):
945 if digestmod == blocked_name:
946 raise _hmac.UnknownHashError(blocked_name)
947 return wrapped(key, msg, digestmod)
948
949 _ensure_wrapper_signature(_hmac_new, wrapped)
950 return unittest.mock.patch('_hmac.new', _hmac_new)

Callers

nothing calls this directly

Calls 1

wrappedFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…