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 /Python/initconfig.c | |
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 'Python/initconfig.c')
-rw-r--r-- | Python/initconfig.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index 32aafdb..c313d91 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -1,14 +1,15 @@ #include "Python.h" -#include "osdefs.h" // DELIM -#include "pycore_fileutils.h" -#include "pycore_getopt.h" -#include "pycore_initconfig.h" +#include "pycore_fileutils.h" // _Py_HasFileSystemDefaultEncodeErrors +#include "pycore_getopt.h" // _PyOS_GetOpt() +#include "pycore_initconfig.h" // _PyStatus_OK() #include "pycore_interp.h" // _PyInterpreterState.runtime -#include "pycore_pathconfig.h" -#include "pycore_pyerrors.h" -#include "pycore_pylifecycle.h" +#include "pycore_pathconfig.h" // _Py_path_config +#include "pycore_pyerrors.h" // _PyErr_Fetch() +#include "pycore_pylifecycle.h" // _Py_PreInitializeFromConfig() #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() + +#include "osdefs.h" // DELIM #include <locale.h> // setlocale() #ifdef HAVE_LANGINFO_H # include <langinfo.h> // nl_langinfo(CODESET) |