diff options
author | Steve Dower <steve.dower@microsoft.com> | 2019-05-23 08:45:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 08:45:22 -0700 |
commit | b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184 (patch) | |
tree | 5370a2a075707cb0b37ce135cad6ffe23da424c4 /Python/pylifecycle.c | |
parent | e788057a9188ff37e232729815dfda2529079420 (diff) | |
download | cpython-git-b82e17e626f7b1cd98aada0b1ebb65cb9f8fb184.tar.gz |
bpo-36842: Implement PEP 578 (GH-12613)
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 1084def9ce..9880c0d624 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1250,6 +1250,13 @@ Py_FinalizeEx(void) /* nothing */; #endif + /* Clear all loghooks */ + /* We want minimal exposure of this function, so define the extern + * here. The linker should discover the correct function without + * exporting a symbol. */ + extern void _PySys_ClearAuditHooks(void); + _PySys_ClearAuditHooks(); + /* Destroy all modules */ PyImport_Cleanup(); |