]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102650: Remove duplicate include directives from multiple source files (#102651)
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>
Mon, 13 Mar 2023 19:25:17 +0000 (22:25 +0300)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 19:25:17 +0000 (13:25 -0600)
Remove duplicate include directives from multiple source files

Mac/Tools/pythonw.c
Modules/_hashopenssl.c
Modules/arraymodule.c
Modules/signalmodule.c
Programs/_testembed.c

index 78813e818e7dace8f744113f7a587e64b0454dfd..9dfb77f6ff41c3f5e711c385fa24d44a0784213a 100644 (file)
@@ -27,7 +27,6 @@
 #include <err.h>
 #include <dlfcn.h>
 #include <stdlib.h>
-#include <Python.h>
 #include <mach-o/dyld.h>
 
 
index 82398547f9b3720f94e8d2e6ce6076b7069d2c9b..ee8c588020118cc7e9772eb21cea08887fde171e 100644 (file)
 /* 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"
index 114c69a033593c89eb1947489a925ac6e8f85cc6..798a76292579666bdd518f21781ca666425b412e 100644 (file)
@@ -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
index 0e472e1ee4f9ddcbc78b117928ee9a616be5b029..fdd1450050fa1b9089ae3051b9e78d6649198f67 100644 (file)
@@ -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
index a6ce3f7b200550c00f48ea516e5460e0d1ad825b..00717114b40286a77b6a22e2c22fd43dbbdfda93 100644 (file)
@@ -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()