gh-121621: Move asyncio running loop to thread state (GH-121695)

This commit is contained in:
Ken Jin 2024-07-17 01:09:58 +08:00 committed by GitHub
parent 8f2532168b
commit 69c68de43a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 111 deletions

View file

@ -108,10 +108,6 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) {
_PyUnicode_InternStatic(interp, &string);
assert(_PyUnicode_CheckConsistency(string, 1));
assert(PyUnicode_GET_LENGTH(string) != 1);
string = &_Py_ID(__asyncio_running_event_loop__);
_PyUnicode_InternStatic(interp, &string);
assert(_PyUnicode_CheckConsistency(string, 1));
assert(PyUnicode_GET_LENGTH(string) != 1);
string = &_Py_ID(__await__);
_PyUnicode_InternStatic(interp, &string);
assert(_PyUnicode_CheckConsistency(string, 1));