]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45211: Move helpers from getpath.c to internal API. (gh-28550)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 27 Sep 2021 16:00:32 +0000 (10:00 -0600)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 16:00:32 +0000 (10:00 -0600)
commitae7839bbe817329dd015f9195da308a0f3fbd3e2
treeba710c468adef4718e3d1ed9747d2acdc830216b
parente5f13ce5b48b551c09fdd0faeafa6ecf860de51c
bpo-45211: Move helpers from getpath.c to internal API. (gh-28550)

This accomplishes 2 things:

* consolidates some common code between getpath.c and getpathp.c
* makes the helpers available to code in other files

FWIW, the signature of the join_relfile() function (in fileutils.c) intentionally mirrors that of Windows' PathCchCombineEx().

Note that this change is mostly moving code around. No behavior is meant to change.

https://bugs.python.org/issue45211
Include/internal/pycore_fileutils.h
Include/internal/pycore_pystate.h
Lib/test/test_embed.py
Modules/getpath.c
PC/getpathp.c
Python/fileutils.c
Python/initconfig.c
Python/preconfig.c