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

Function _call_newobj_func

Lib/test/test_hmac.py:121–125  ·  view source on GitHub ↗
(new_func, key, msg, digestmod)

Source from the content-addressed store, hash-verified

119
120
121def _call_newobj_func(new_func, key, msg, digestmod):
122 if digestmod is DIGESTMOD_SENTINEL: # to test when digestmod is missing
123 return new_func(key, msg) # expected to raise
124 # functions creating HMAC objects take a 'digestmod' keyword argument
125 return new_func(key, msg, digestmod=digestmod)
126
127
128def _call_digest_func(digest_func, key, msg, digestmod):

Callers 5

hmac_newMethod · 0.85
hmac_digestMethod · 0.85
hmac_newMethod · 0.85
hmac_newMethod · 0.85
hmac_newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…