]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove minor redundant code from `_asyncio` (#126578)
authorKumar Aditya <kumaraditya@python.org>
Fri, 8 Nov 2024 13:17:03 +0000 (18:47 +0530)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2024 13:17:03 +0000 (13:17 +0000)
Modules/_asynciomodule.c

index 58b57ae7a983c2c15c02a6d0a82eaec79ca6b32d..617a3dca35d9c257c3dc59e65e6301d0ccc72dcc 100644 (file)
@@ -8,7 +8,7 @@
 #include "pycore_freelist.h"      // _Py_FREELIST_POP()
 #include "pycore_modsupport.h"    // _PyArg_CheckPositional()
 #include "pycore_moduleobject.h"  // _PyModule_GetState()
-#include "pycore_object.h"        // _Py_SetImmortalUntracked
+#include "pycore_object.h"        // _Py_SetImmortalUntracked()
 #include "pycore_pyerrors.h"      // _PyErr_ClearExcState()
 #include "pycore_pylifecycle.h"   // _Py_IsInterpreterFinalizing()
 #include "pycore_pystate.h"       // _PyThreadState_GET()
@@ -85,8 +85,6 @@ typedef struct {
 #   define ASYNCIO_STATE_UNLOCK(state) ((void)state)
 #endif
 
-typedef struct futureiterobject futureiterobject;
-
 /* State of the _asyncio module */
 typedef struct {
 #ifdef Py_GIL_DISABLED