mirror of https://github.com/python/cpython
fix bug with missing default for last arg (discovered by Tommy Burnette)
This commit is contained in:
parent
befa14f1b9
commit
a1e7e62893
|
@ -2139,8 +2139,9 @@ com_argdefs(c, n)
|
|||
nargs++;
|
||||
i++;
|
||||
if (i >= nch)
|
||||
break;
|
||||
t = TYPE(CHILD(n, i));
|
||||
t = RPAR; /* Anything except EQUAL or COMMA */
|
||||
else
|
||||
t = TYPE(CHILD(n, i));
|
||||
if (t == EQUAL) {
|
||||
i++;
|
||||
ndefs++;
|
||||
|
|
Loading…
Reference in New Issue