diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-30 12:57:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 12:57:33 (GMT) |
commit | 3d60dfbe1755e00ab20d0ee81281886be77ad5da (patch) | |
tree | b1078f50a6b8641321f1044698867cb52f27105e /Modules/_sre | |
parent | 7fca268beee8ed13a8f161f0a0d5e21ff52d1ac1 (diff) | |
download | cpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.zip cpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.tar.gz cpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.tar.bz2 |
gh-121645: Add PyBytes_Join() function (#121646)
* Replace _PyBytes_Join() with PyBytes_Join().
* Keep _PyBytes_Join() as an alias to PyBytes_Join().
Diffstat (limited to 'Modules/_sre')
-rw-r--r-- | Modules/_sre/sre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c index 01420d1..32f91af 100644 --- a/Modules/_sre/sre.c +++ b/Modules/_sre/sre.c @@ -1287,7 +1287,7 @@ pattern_subx(_sremodulestate* module_state, } else { if (state.isbytes) - item = _PyBytes_Join(joiner, list); + item = PyBytes_Join(joiner, list); else item = PyUnicode_Join(joiner, list); Py_DECREF(joiner); @@ -2918,7 +2918,7 @@ expand_template(TemplateObject *self, MatchObject *match) } else { Py_SET_SIZE(list, count); - result = _PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), list); + result = PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), list); } cleanup: |