MCPcopy Create free account
hub / github.com/tox-dev/filelock / setprofile_again

Function setprofile_again

tasks/capabilities.py:227–230  ·  view source on GitHub ↗
(event: str, _args: Unused)

Source from the content-addressed store, hash-verified

225 nested: list[bool] = []
226
227 def setprofile_again(event: str, _args: Unused) -> None:
228 if event == "sys.setprofile" and not nested:
229 nested.append(True)
230 sys.setprofile(sys.getprofile())
231
232 sys.addaudithook(setprofile_again)
233 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected