summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-04-29 05:51:55 +0100
committerGitHub <noreply@github.com>2023-04-29 04:51:55 +0000
commit738c226786997262b76557d2dadd2beb89ea3fd1 (patch)
tree60e4c176e7064ac53dc602ac5c31102264631ce4 /Python/pystate.c
parente1f14643dc0e6024f8df9ae975c3b05912a3cb28 (diff)
downloadcpython-git-738c226786997262b76557d2dadd2beb89ea3fd1.tar.gz
GH-103082: Code cleanup in instrumentation code (#103474)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index ffab301f31..f103a059f0 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -686,11 +686,11 @@ init_interpreter(PyInterpreterState *interp,
_PyGC_InitState(&interp->gc);
PyConfig_InitPythonConfig(&interp->config);
_PyType_InitCache(interp);
- for(int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
+ for (int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
interp->monitors.tools[i] = 0;
}
for (int t = 0; t < PY_MONITORING_TOOL_IDS; t++) {
- for(int e = 0; e < PY_MONITORING_EVENTS; e++) {
+ for (int e = 0; e < PY_MONITORING_EVENTS; e++) {
interp->monitoring_callables[t][e] = NULL;
}
@@ -834,11 +834,11 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
Py_CLEAR(interp->audit_hooks);
- for(int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
+ for (int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
interp->monitors.tools[i] = 0;
}
for (int t = 0; t < PY_MONITORING_TOOL_IDS; t++) {
- for(int e = 0; e < PY_MONITORING_EVENTS; e++) {
+ for (int e = 0; e < PY_MONITORING_EVENTS; e++) {
Py_CLEAR(interp->monitoring_callables[t][e]);
}
}