]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125583)
authorVictor Stinner <vstinner@python.org>
Fri, 25 Oct 2024 09:14:52 +0000 (11:14 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Oct 2024 09:14:52 +0000 (11:14 +0200)
commitebcc578dff47b1dcffb634923bedc5361c8f29f6
tree0d9ba11a0efeec743ca57fd2ee6cfdc0d1d68d36
parentdb96327203b09ada45f2214567f92fe4d837f82a
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125583)

Replace PyUnicode_FromStringAndSize(NULL, 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
Modules/_datetimemodule.c
Modules/_io/textio.c
Modules/getpath.c