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/pythonrun.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/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index d6bc883..0a25ebc 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -12,36 +12,33 @@ #include "Python-ast.h" #undef Yield /* undefine macro conflicting with <winbase.h> */ + #include "pycore_interp.h" // PyInterpreterState.importlib -#include "pycore_object.h" -#include "pycore_pyerrors.h" -#include "pycore_pylifecycle.h" +#include "pycore_object.h" // _PyDebug_PrintTotalRefs() +#include "pycore_pyerrors.h" // _PyErr_Fetch +#include "pycore_pylifecycle.h" // _Py_UnhandledKeyboardInterrupt #include "pycore_pystate.h" // _PyInterpreterState_GET() -#include "pycore_sysmodule.h" -#include "grammar.h" -#include "node.h" -#include "token.h" -#include "parsetok.h" -#include "errcode.h" -#include "code.h" -#include "symtable.h" -#include "ast.h" -#include "marshal.h" -#include <locale.h> - -#ifdef HAVE_SIGNAL_H -#include <signal.h> -#endif +#include "pycore_sysmodule.h" // _PySys_Audit() + +#include "node.h" // node +#include "token.h" // INDENT +#include "parsetok.h" // perrdetail +#include "errcode.h" // E_EOF +#include "code.h" // PyCodeObject +#include "symtable.h" // PySymtable_BuildObject() +#include "ast.h" // PyAST_FromNodeObject() +#include "marshal.h" // PyMarshal_ReadLongFromFile() #ifdef MS_WINDOWS -#include "malloc.h" /* for alloca */ +# include "malloc.h" // alloca() #endif #ifdef MS_WINDOWS -#undef BYTE -#include "windows.h" +# undef BYTE +# include "windows.h" #endif + _Py_IDENTIFIER(builtins); _Py_IDENTIFIER(excepthook); _Py_IDENTIFIER(flush); |