◐ Shell
clean mode source ↗

bpo-45211: Move helpers from getpath.c to internal API. by ericsnowcurrently · Pull Request #28550 · python/cpython

This accomplishes 2 things:

  • consolidates some common code between getpath.c and getpathp.c
  • makes the helpers available to code in other files (I'll be doing that in a later PR)

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

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

https://bugs.python.org/issue45211