summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-15 02:01:58 (GMT)
committerGitHub <noreply@github.com>2020-04-15 02:01:58 (GMT)
commit4f98f465f14e7258c5b18a62c5aa114dbe1174d8 (patch)
tree98bf8f2586b42aaf9ae632f2a8220854bc43c7fc /Modules/main.c
parent361dcdcefc80f5729ed18ac0ef73327794fbf400 (diff)
downloadcpython-4f98f465f14e7258c5b18a62c5aa114dbe1174d8.zip
cpython-4f98f465f14e7258c5b18a62c5aa114dbe1174d8.tar.gz
cpython-4f98f465f14e7258c5b18a62c5aa114dbe1174d8.tar.bz2
bpo-40268: Remove unused imports in pylifecycle.c (GH-19533)
Remove unused imports in files: * initconfig.c * main.c * preconfig.h * pylifecycle.c * python.c * pythonrun.c
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 4d696a3..bc3a2ed 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -1,22 +1,22 @@
/* Python interpreter main program */
#include "Python.h"
-#include "pycore_initconfig.h"
-#include "pycore_interp.h" // _PyInterpreterState.sysdict
-#include "pycore_pathconfig.h"
-#include "pycore_pylifecycle.h"
-#include "pycore_pystate.h" // _PyInterpreterState_GET()
+#include "pycore_initconfig.h" // _PyArgv
+#include "pycore_interp.h" // _PyInterpreterState.sysdict
+#include "pycore_pathconfig.h" // _PyPathConfig_ComputeSysPath0()
+#include "pycore_pylifecycle.h" // _Py_PreInitializeFromPyArgv()
+#include "pycore_pystate.h" // _PyInterpreterState_GET()
/* Includes for exit_sigint() */
-#include <stdio.h> /* perror() */
+#include <stdio.h> // perror()
#ifdef HAVE_SIGNAL_H
-# include <signal.h> /* SIGINT */
+# include <signal.h> // SIGINT
#endif
#if defined(HAVE_GETPID) && defined(HAVE_UNISTD_H)
-# include <unistd.h> /* getpid() */
+# include <unistd.h> // getpid()
#endif
#ifdef MS_WINDOWS
-# include <windows.h> /* STATUS_CONTROL_C_EXIT */
+# include <windows.h> // STATUS_CONTROL_C_EXIT
#endif
/* End of includes for exit_sigint() */