diff options
author | chgnrdv <52372310+chgnrdv@users.noreply.github.com> | 2023-03-13 19:25:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 19:25:17 (GMT) |
commit | 85ba8a3e03707092800cbf2a29d95e0b495e3cb7 (patch) | |
tree | 91ad01a94f5f553497843a8100ba2a54d7d8e757 | |
parent | 2d370da5702f07d044f0e612df68172852b89f42 (diff) | |
download | cpython-85ba8a3e03707092800cbf2a29d95e0b495e3cb7.zip cpython-85ba8a3e03707092800cbf2a29d95e0b495e3cb7.tar.gz cpython-85ba8a3e03707092800cbf2a29d95e0b495e3cb7.tar.bz2 |
gh-102650: Remove duplicate include directives from multiple source files (#102651)
Remove duplicate include directives from multiple source files
-rw-r--r-- | Mac/Tools/pythonw.c | 1 | ||||
-rw-r--r-- | Modules/_hashopenssl.c | 3 | ||||
-rw-r--r-- | Modules/arraymodule.c | 1 | ||||
-rw-r--r-- | Modules/signalmodule.c | 4 | ||||
-rw-r--r-- | Programs/_testembed.c | 1 |
5 files changed, 2 insertions, 8 deletions
diff --git a/Mac/Tools/pythonw.c b/Mac/Tools/pythonw.c index 78813e8..9dfb77f 100644 --- a/Mac/Tools/pythonw.c +++ b/Mac/Tools/pythonw.c @@ -27,7 +27,6 @@ #include <err.h> #include <dlfcn.h> #include <stdlib.h> -#include <Python.h> #include <mach-o/dyld.h> diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 8239854..ee8c588 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -32,12 +32,11 @@ /* EVP is the preferred interface to hashing in OpenSSL */ #include <openssl/evp.h> #include <openssl/hmac.h> -#include <openssl/crypto.h> +#include <openssl/crypto.h> // FIPS_mode() /* We use the object interface to discover what hashes OpenSSL supports. */ #include <openssl/objects.h> #include <openssl/err.h> -#include <openssl/crypto.h> // FIPS_mode() #ifndef OPENSSL_THREADS # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 114c69a..798a762 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -13,7 +13,6 @@ #include "pycore_bytesobject.h" // _PyBytes_Repeat #include "structmember.h" // PyMemberDef #include <stddef.h> // offsetof() -#include <stddef.h> /*[clinic input] module array diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 0e472e1..fdd1450 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -13,7 +13,7 @@ #include "pycore_moduleobject.h" // _PyModule_GetState() #include "pycore_pyerrors.h" // _PyErr_SetString() #include "pycore_pystate.h" // _PyThreadState_GET() -#include "pycore_signal.h" +#include "pycore_signal.h" // Py_NSIG #ifndef MS_WINDOWS # include "posixmodule.h" @@ -28,8 +28,6 @@ # endif #endif -#include "pycore_signal.h" // Py_NSIG - #ifdef HAVE_SIGNAL_H # include <signal.h> #endif diff --git a/Programs/_testembed.c b/Programs/_testembed.c index a6ce3f7..0071711 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -9,7 +9,6 @@ #include "pycore_initconfig.h" // _PyConfig_InitCompatConfig() #include "pycore_runtime.h" // _PyRuntime #include "pycore_import.h" // _PyImport_FrozenBootstrap -#include <Python.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> // putenv() |