mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
Fix a regression introduced by myself in the commit526b22657c
. (cherry picked from commitc8d6ab2e25
)
This commit is contained in:
parent
c1d5345679
commit
c472fb6b27
1 changed files with 1 additions and 1 deletions
|
@ -5189,7 +5189,7 @@ os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
|
|||
goto fail_1;
|
||||
}
|
||||
if (i == 0 && !argvlist[0][0]) {
|
||||
lastarg = i;
|
||||
lastarg = i + 1;
|
||||
PyErr_SetString(
|
||||
PyExc_ValueError,
|
||||
"spawnv() arg 2 first element cannot be empty");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue