Skip to content

Commit 064129a

Browse files
committed
Improve comments after f56468a
1 parent a577328 commit 064129a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_asynciomodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,8 +2155,8 @@ enter_task(asyncio_state *state, PyObject *loop, PyObject *task)
21552155
// memory reads and logic, as Python's dict is a notoriously complex
21562156
// and ever-changing data structure.
21572157
//
2158-
// So the easier solution is to put a strong reference of the currently
2159-
// running `asyncio.Task` to the interpreter thread state (we already
2158+
// So the easier solution is to put a strong reference to the currently
2159+
// running `asyncio.Task` on the interpreter thread state (we already
21602160
// have some asyncio state there.)
21612161
_PyThreadStateImpl *ts = (_PyThreadStateImpl *)_PyThreadState_GET();
21622162
if (ts->asyncio_running_loop == loop) {
@@ -2172,7 +2172,7 @@ enter_task(asyncio_state *state, PyObject *loop, PyObject *task)
21722172
//
21732173
// That said, we still want to make sure we don't end up in
21742174
// a broken state, so we check that we're in the correct thread
2175-
// by comparing the *loop* argument to running event loop
2175+
// by comparing the *loop* argument to the event loop running
21762176
// in the current thread. If they match we know we're in the
21772177
// right thread, as asyncio event loops don't change threads.
21782178
assert(ts->asyncio_running_task == NULL);

0 commit comments

Comments
 (0)