]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES) (#125195)
authorVictor Stinner <vstinner@python.org>
Wed, 9 Oct 2024 15:12:11 +0000 (17:12 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 15:12:11 +0000 (17:12 +0200)
commit6a39e96ab8ebc1144f713988ac6fe439e4476488
tree20f4c0367c472d07ca66c3ea15fa5c98c70af70d
parent3ee474f5683110e153fdd0cbd2024f99d6c124e5
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES) (#125195)

Replace PyBytes_FromString("") and PyBytes_FromStringAndSize("", 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_BYTES).
Modules/_ctypes/_ctypes.c
Modules/_io/textio.c
Modules/mmapmodule.c
Modules/zlibmodule.c
Objects/bytesobject.c
Parser/action_helpers.c