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

Function dummy

Lib/test/support/hashlib_helper.py:982–983  ·  view source on GitHub ↗
(data=b'', *, usedforsecurity=True, string=None)

Source from the content-addressed store, hash-verified

980def _block_hashlib_hash_constructor(name):
981 """Block explicit public constructors."""
982 def dummy(data=b'', *, usedforsecurity=True, string=None):
983 raise ValueError(f"blocked explicit public hash name: {name}")
984 return _make_hash_constructor_blocker(name, dummy, 'hashlib')
985
986

Callers 2

testfuncMethod · 0.50
testfuncMethod · 0.50

Calls

no outgoing calls

Tested by 2

testfuncMethod · 0.40
testfuncMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…