Commit 3e1eedd
PySys_AddAuditHook: check initialized, not core_initialized
The docs say audit hooks are notified "after runtime initialization".
With the flag move, initialized=0 throughout init (including site
import), so hooks are correctly not invoked during any init phase.
Using core_initialized would have expanded the invocation window
beyond the original behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent efeae3b commit 3e1eedd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
0 commit comments