Skip to content

Commit 85ba8a3

Browse files
authored
gh-102650: Remove duplicate include directives from multiple source files (#102651)
Remove duplicate include directives from multiple source files
1 parent 2d370da commit 85ba8a3

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

Mac/Tools/pythonw.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <err.h>
2828
#include <dlfcn.h>
2929
#include <stdlib.h>
30-
#include <Python.h>
3130
#include <mach-o/dyld.h>
3231

3332

Modules/_hashopenssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232
/* EVP is the preferred interface to hashing in OpenSSL */
3333
#include <openssl/evp.h>
3434
#include <openssl/hmac.h>
35-
#include <openssl/crypto.h>
35+
#include <openssl/crypto.h> // FIPS_mode()
3636
/* We use the object interface to discover what hashes OpenSSL supports. */
3737
#include <openssl/objects.h>
3838
#include <openssl/err.h>
3939

40-
#include <openssl/crypto.h> // FIPS_mode()
4140

4241
#ifndef OPENSSL_THREADS
4342
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"

Modules/arraymodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "pycore_bytesobject.h" // _PyBytes_Repeat
1414
#include "structmember.h" // PyMemberDef
1515
#include <stddef.h> // offsetof()
16-
#include <stddef.h>
1716

1817
/*[clinic input]
1918
module array

Modules/signalmodule.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "pycore_moduleobject.h" // _PyModule_GetState()
1414
#include "pycore_pyerrors.h" // _PyErr_SetString()
1515
#include "pycore_pystate.h" // _PyThreadState_GET()
16-
#include "pycore_signal.h"
16+
#include "pycore_signal.h" // Py_NSIG
1717

1818
#ifndef MS_WINDOWS
1919
# include "posixmodule.h"
@@ -28,8 +28,6 @@
2828
# endif
2929
#endif
3030

31-
#include "pycore_signal.h" // Py_NSIG
32-
3331
#ifdef HAVE_SIGNAL_H
3432
# include <signal.h>
3533
#endif

Programs/_testembed.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "pycore_initconfig.h" // _PyConfig_InitCompatConfig()
1010
#include "pycore_runtime.h" // _PyRuntime
1111
#include "pycore_import.h" // _PyImport_FrozenBootstrap
12-
#include <Python.h>
1312
#include <inttypes.h>
1413
#include <stdio.h>
1514
#include <stdlib.h> // putenv()

0 commit comments

Comments
 (0)