mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Make it compile with older compilers.
This commit is contained in:
parent
4f72a78684
commit
29602e42eb
1 changed files with 3 additions and 3 deletions
|
@ -2721,11 +2721,11 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
|
|||
for (i = co->co_argcount;
|
||||
i < co->co_argcount + co->co_kwonlyargcount;
|
||||
i++) {
|
||||
PyObject *name, *def;
|
||||
if (GETLOCAL(i) != NULL)
|
||||
continue;
|
||||
PyObject *name =
|
||||
PyTuple_GET_ITEM(co->co_varnames, i);
|
||||
PyObject *def = NULL;
|
||||
name = PyTuple_GET_ITEM(co->co_varnames, i);
|
||||
def = NULL;
|
||||
if (kwdefs != NULL)
|
||||
def = PyDict_GetItem(kwdefs, name);
|
||||
if (def != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue