aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pathconfig.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-06 15:56:08 +0200
committerGitHub <noreply@github.com>2023-09-06 15:56:08 +0200
commitb298b395e8ab1725c4f0dd736155b8c818664d42 (patch)
tree7946296ed34254283f71a70004b06fe7a7d2c30d /Python/pathconfig.c
parent14d6e197cc56e5256d501839a4e66e3864ab15f0 (diff)
downloadcpython-b298b395e8ab1725c4f0dd736155b8c818664d42.tar.gz
cpython-b298b395e8ab1725c4f0dd736155b8c818664d42.zip
gh-108765: Cleanup #include in Python/*.c files (#108977)
Mention one symbol imported by each #include.
Diffstat (limited to 'Python/pathconfig.c')
-rw-r--r--Python/pathconfig.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index afffa134e89..0ac64ec8110 100644
--- a/Python/pathconfig.c
+++ b/Python/pathconfig.c
@@ -1,13 +1,15 @@
/* Path configuration like module_search_path (sys.path) */
#include "Python.h"
-#include "marshal.h" // PyMarshal_ReadObjectFromString
-#include "osdefs.h" // DELIM
-#include "pycore_initconfig.h"
-#include "pycore_fileutils.h"
+#include "pycore_initconfig.h" // _PyStatus_OK()
+#include "pycore_fileutils.h" // _Py_wgetcwd()
#include "pycore_pathconfig.h"
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include <wchar.h>
+
+#include "marshal.h" // PyMarshal_ReadObjectFromString
+#include "osdefs.h" // DELIM
+
#ifdef MS_WINDOWS
# include <windows.h> // GetFullPathNameW(), MAX_PATH
# include <pathcch.h>