diff options
| author | Victor Stinner <vstinner@python.org> | 2022-01-11 11:56:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-11 11:56:16 +0100 |
| commit | ea1a54506b4ac38b712ba63ec884292025f16111 (patch) | |
| tree | 752bad07fb725dd178e2d79e4dedf23b74dcdd34 /Python | |
| parent | fc75bfb8be8494e22123f2c14d1ab497c77cc22d (diff) | |
| download | python-ea1a54506b4ac38b712ba63ec884292025f16111.tar.gz python-ea1a54506b4ac38b712ba63ec884292025f16111.zip | |
bpo-46303: Move fileutils.h private functions to internal C API (GH-30484)
Move almost all private functions of Include/cpython/fileutils.h to
the internal C API Include/internal/pycore_fileutils.h.
Only keep _Py_fopen_obj() in Include/cpython/fileutils.h, since it's
used by _testcapi which must not use the internal C API.
Move EncodeLocaleEx() and DecodeLocaleEx() functions from _testcapi
to _testinternalcapi, since the C API moved to the internal C API.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/bootstrap_hash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bootstrap_hash.c b/Python/bootstrap_hash.c index 144f7cb4a21..3a2a7318086 100644 --- a/Python/bootstrap_hash.c +++ b/Python/bootstrap_hash.c @@ -1,5 +1,7 @@ #include "Python.h" #include "pycore_initconfig.h" +#include "pycore_fileutils.h" // _Py_fstat_noraise() + #ifdef MS_WINDOWS # include <windows.h> # include <bcrypt.h> |
