summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-11-08 13:17:03 (GMT)
committerGitHub <noreply@github.com>2024-11-08 13:17:03 (GMT)
commitb19d12f44735583e339ee6ee560588fcf22633b4 (patch)
tree5536498966979d44916b6d91579f2fd9a8228434 /Modules
parenta93fc0969e4d57a2ecfe18cbba7de2d5ee757e2c (diff)
downloadcpython-b19d12f44735583e339ee6ee560588fcf22633b4.zip
cpython-b19d12f44735583e339ee6ee560588fcf22633b4.tar.gz
cpython-b19d12f44735583e339ee6ee560588fcf22633b4.tar.bz2
remove minor redundant code from `_asyncio` (#126578)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_asynciomodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index 58b57ae..617a3dc 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -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