summaryrefslogtreecommitdiffstats
path: root/Modules/_sre
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-08-30 12:57:33 (GMT)
committerGitHub <noreply@github.com>2024-08-30 12:57:33 (GMT)
commit3d60dfbe1755e00ab20d0ee81281886be77ad5da (patch)
treeb1078f50a6b8641321f1044698867cb52f27105e /Modules/_sre
parent7fca268beee8ed13a8f161f0a0d5e21ff52d1ac1 (diff)
downloadcpython-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.c4
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: