Skip to content

Commit

Permalink
pythongh-102650: Remove duplicate include directives from multiple so…
Browse files Browse the repository at this point in the history
…urce files (python#102651)

Remove duplicate include directives from multiple source files
  • Loading branch information
chgnrdv authored and Fidget-Spinner committed Mar 27, 2023
1 parent 3985abd commit 5814088
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion Mac/Tools/pythonw.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <err.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <Python.h>
#include <mach-o/dyld.h>


Expand Down
3 changes: 1 addition & 2 deletions Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion Modules/arraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -28,8 +28,6 @@
# endif
#endif

#include "pycore_signal.h" // Py_NSIG

#ifdef HAVE_SIGNAL_H
# include <signal.h>
#endif
Expand Down
1 change: 0 additions & 1 deletion Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5814088

Please sign in to comment.