summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-15 00:04:42 (GMT)
committerGitHub <noreply@github.com>2020-04-15 00:04:42 (GMT)
commit62183b8d6d49e59c6a98bbdaa65b7ea1415abb7f (patch)
tree6fe82dd9494ae4de5041b16e18816973904d110b /Python
parentd01628e411752ee6849f862cae66a1c69fe512b7 (diff)
downloadcpython-62183b8d6d49e59c6a98bbdaa65b7ea1415abb7f.zip
cpython-62183b8d6d49e59c6a98bbdaa65b7ea1415abb7f.tar.gz
cpython-62183b8d6d49e59c6a98bbdaa65b7ea1415abb7f.tar.bz2
bpo-40268: Remove explicit pythread.h includes (#19529)
Remove explicit pythread.h includes: it is always included by Python.h.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c1
-rw-r--r--Python/import.c2
-rw-r--r--Python/pylifecycle.c2
-rw-r--r--Python/sysmodule.c1
-rw-r--r--Python/thread.c2
5 files changed, 0 insertions, 8 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 505f05c..5e54356 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -240,7 +240,6 @@ UNSIGNAL_ASYNC_EXC(PyInterpreterState *interp)
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#include "pythread.h"
#include "ceval_gil.h"
static void
diff --git a/Python/import.c b/Python/import.c
index 4933463..2f2e9d1 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -150,8 +150,6 @@ _PyImportZip_Init(PyThreadState *tstate)
in different threads to return with a partially loaded module.
These calls are serialized by the global interpreter lock. */
-#include "pythread.h"
-
static PyThread_type_lock import_lock = 0;
static unsigned long import_lock_thread = PYTHREAD_INVALID_THREAD_ID;
static int import_lock_level = 0;
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 754e762..974b425 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -2350,8 +2350,6 @@ Py_ExitStatusException(PyStatus status)
/* Clean up and exit */
-# include "pythread.h"
-
/* For the atexit module. */
void _Py_PyAtExit(void (*func)(PyObject *), PyObject *module)
{
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 741979a..63111d5 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -26,7 +26,6 @@ Data members:
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tupleobject.h"
-#include "pythread.h"
#include "pydtrace.h"
#include "osdefs.h"
diff --git a/Python/thread.c b/Python/thread.c
index 1276103..a10f572 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -23,8 +23,6 @@
#include <stdlib.h>
-#include "pythread.h"
-
#ifndef _POSIX_THREADS
/* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then