summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-10-02 23:51:20 +0200
committerGitHub <noreply@github.com>2019-10-02 23:51:20 +0200
commit61691d833631fed42b86605b09e1535e3e8d40e5 (patch)
tree766d3ec48508213f7e371728b29c9cf49cdecee9 /Objects
parentb3e7045f8314e7b62cd95861d207fe2f97e47198 (diff)
downloadcpython-git-61691d833631fed42b86605b09e1535e3e8d40e5.tar.gz
bpo-38353: Cleanup includes in the internal C API (GH-16548)
Use forward declaration of types to avoid includes in the internal C API. Add also comment to justify other includes.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 55b2519181..0526225ca3 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -40,9 +40,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define PY_SSIZE_T_CLEAN
#include "Python.h"
-#include "pycore_initconfig.h"
#include "pycore_fileutils.h"
+#include "pycore_initconfig.h"
#include "pycore_object.h"
+#include "pycore_pathconfig.h"
#include "pycore_pylifecycle.h"
#include "pycore_pystate.h"
#include "ucnhash.h"