From ca10e022f78678d297ad6f8033514865e6aa4e7b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 13 Oct 2021 03:22:11 +0200 Subject: [PATCH] bpo-45434: bytearrayobject.h no longer includes bytearrayobject.h and _lzmamodule.c don't use va_list and so don't need to include . --- Include/bytearrayobject.h | 2 -- Include/bytesobject.h | 2 +- Include/modsupport.h | 2 +- Include/unicodeobject.h | 2 +- Modules/_lzmamodule.c | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Include/bytearrayobject.h b/Include/bytearrayobject.h index 9e95433f0f26f0..1a834474dde7c3 100644 --- a/Include/bytearrayobject.h +++ b/Include/bytearrayobject.h @@ -6,8 +6,6 @@ extern "C" { #endif -#include - /* Type PyByteArrayObject represents a mutable array of bytes. * The Python API is that of a sequence; * the bytes are mapped to ints in [0, 256). diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 39c241a2dcf5f7..bcb1a5942c68f8 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -7,7 +7,7 @@ extern "C" { #endif -#include +#include // va_list /* Type PyBytesObject represents a byte string. An extra zero byte is diff --git a/Include/modsupport.h b/Include/modsupport.h index 7d37b499422559..baf47f0038d08d 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -7,7 +7,7 @@ extern "C" { /* Module support interface */ -#include +#include // va_list /* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier to mean Py_ssize_t */ diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index b0ac086a6be23d..c65b9228298d76 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1,7 +1,7 @@ #ifndef Py_UNICODEOBJECT_H #define Py_UNICODEOBJECT_H -#include +#include // va_list /* diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c index 915c0c918f6443..a7156ec7ddf042 100644 --- a/Modules/_lzmamodule.c +++ b/Modules/_lzmamodule.c @@ -10,7 +10,6 @@ #include "Python.h" #include "structmember.h" // PyMemberDef -#include #include #include