diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-15 03:24:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 03:24:57 +0200 |
commit | 361dcdcefc80f5729ed18ac0ef73327794fbf400 (patch) | |
tree | 9ec3e27545cbf1f5f082b612ecbeb94b759827f9 /Python | |
parent | d9ea5cae1d07e1ee8b03540a9367c26205e0e360 (diff) | |
download | cpython-git-361dcdcefc80f5729ed18ac0ef73327794fbf400.tar.gz |
bpo-40268: Remove unused osdefs.h includes (GH-19532)
When the include is needed, add required symbol in a comment.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/fileutils.c | 2 | ||||
-rw-r--r-- | Python/import.c | 1 | ||||
-rw-r--r-- | Python/pathconfig.c | 2 | ||||
-rw-r--r-- | Python/pylifecycle.c | 1 | ||||
-rw-r--r-- | Python/pythonrun.c | 1 | ||||
-rw-r--r-- | Python/sysmodule.c | 4 | ||||
-rw-r--r-- | Python/traceback.c | 2 |
7 files changed, 5 insertions, 8 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 19ead9d676..439bc35159 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1,6 +1,6 @@ #include "Python.h" #include "pycore_fileutils.h" -#include "osdefs.h" +#include "osdefs.h" // SEP #include <locale.h> #ifdef MS_WINDOWS diff --git a/Python/import.c b/Python/import.c index a2aa4afa18..a8743458dd 100644 --- a/Python/import.c +++ b/Python/import.c @@ -16,7 +16,6 @@ #include "marshal.h" #include "code.h" #include "frameobject.h" -#include "osdefs.h" #include "importdl.h" #include "pydtrace.h" diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 6ebfdac3fd..fe3ac3ee3d 100644 --- a/Python/pathconfig.c +++ b/Python/pathconfig.c @@ -1,7 +1,7 @@ /* Path configuration like module_search_path (sys.path) */ #include "Python.h" -#include "osdefs.h" +#include "osdefs.h" // DELIM #include "pycore_initconfig.h" #include "pycore_fileutils.h" #include "pycore_pathconfig.h" diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 9c13274dac..688ee0c133 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -26,7 +26,6 @@ #include "symtable.h" #include "ast.h" #include "marshal.h" -#include "osdefs.h" #include <locale.h> #ifdef HAVE_SIGNAL_H diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 246669994c..d6bc883203 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -27,7 +27,6 @@ #include "symtable.h" #include "ast.h" #include "marshal.h" -#include "osdefs.h" #include <locale.h> #ifdef HAVE_SIGNAL_H diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4e67325318..92ea5e7d63 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -26,9 +26,9 @@ Data members: #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_tupleobject.h" -#include "pydtrace.h" -#include "osdefs.h" +#include "pydtrace.h" +#include "osdefs.h" // DELIM #include <locale.h> #ifdef MS_WINDOWS diff --git a/Python/traceback.c b/Python/traceback.c index e3397ecfe4..85e9124bb6 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -6,7 +6,7 @@ #include "code.h" #include "frameobject.h" #include "structmember.h" // PyMemberDef -#include "osdefs.h" +#include "osdefs.h" // SEP #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif |