diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-15 02:01:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 02:01:58 (GMT) |
commit | 4f98f465f14e7258c5b18a62c5aa114dbe1174d8 (patch) | |
tree | 98bf8f2586b42aaf9ae632f2a8220854bc43c7fc /Modules | |
parent | 361dcdcefc80f5729ed18ac0ef73327794fbf400 (diff) | |
download | cpython-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')
-rw-r--r-- | Modules/main.c | 18 |
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() */ |