MCPcopy Create free account
hub / github.com/python/cpython / audit_events_merge

Function audit_events_merge

Doc/tools/extensions/audit_events.py:97–105  ·  view source on GitHub ↗

In Sphinx parallel builds, this merges audit_events from subprocesses.

(
    app: Sphinx,
    env: BuildEnvironment,
    docnames: list[str],
    other: BuildEnvironment,
)

Source from the content-addressed store, hash-verified

95
96
97def audit_events_merge(
98 app: Sphinx,
99 env: BuildEnvironment,
100 docnames: list[str],
101 other: BuildEnvironment,
102) -> None:
103 """In Sphinx parallel builds, this merges audit_events from subprocesses."""
104 for name, args, source in other.audit_events:
105 env.audit_events.add_event(name, args, source)
106
107
108class AuditEvent(SphinxDirective):

Callers

nothing calls this directly

Calls 1

add_eventMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…