Skip to content

Commit fcfab59

Browse files
committed
Merge branch 'gh-119333-notify' into HEAD
2 parents 1ec809d + d3b889f commit fcfab59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/context.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ context_event_name(PyContextEvent event) {
113113
}
114114

115115
static void
116-
notify_context_watchers(PyContextEvent event, PyObject *ctx, PyThreadState *ts)
116+
notify_context_watchers(PyThreadState *ts, PyContextEvent event, PyObject *ctx)
117117
{
118118
assert(Py_REFCNT(ctx) > 0);
119119
PyInterpreterState *interp = ts->interp;
@@ -196,7 +196,7 @@ _PyContext_Enter(PyThreadState *ts, PyObject *octx)
196196
ts->context = Py_NewRef(ctx);
197197
ts->context_ver++;
198198

199-
notify_context_watchers(Py_CONTEXT_EVENT_ENTER, octx, ts);
199+
notify_context_watchers(ts, Py_CONTEXT_EVENT_ENTER, octx);
200200
return 0;
201201
}
202202

@@ -230,7 +230,7 @@ _PyContext_Exit(PyThreadState *ts, PyObject *octx)
230230
return -1;
231231
}
232232

233-
notify_context_watchers(Py_CONTEXT_EVENT_EXIT, octx, ts);
233+
notify_context_watchers(ts, Py_CONTEXT_EVENT_EXIT, octx);
234234
Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev);
235235
ts->context_ver++;
236236

0 commit comments

Comments
 (0)