Skip to content

Commit 12fd858

Browse files
committed
use PyBytes_Join rather than .join method call
1 parent 8a29643 commit 12fd858

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8056,7 +8056,7 @@ py_posix_spawn(int use_posix_spawnp, PyObject *module, path_t *path, PyObject *a
80568056
goto exit;
80578057
}
80588058

8059-
PyObject *joined = PyObject_CallMethod(separator, "join", "O", cwd_buffer);
8059+
PyObject *joined = PyBytes_Join(separator, cwd_buffer);
80608060
Py_DECREF(separator);
80618061
if (!joined) {
80628062
goto exit;

0 commit comments

Comments
 (0)