mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fix bug with missing default for last arg (discovered by Tommy Burnette)
This commit is contained in:
parent
befa14f1b9
commit
a1e7e62893
1 changed files with 3 additions and 2 deletions
|
@ -2139,8 +2139,9 @@ com_argdefs(c, n)
|
||||||
nargs++;
|
nargs++;
|
||||||
i++;
|
i++;
|
||||||
if (i >= nch)
|
if (i >= nch)
|
||||||
break;
|
t = RPAR; /* Anything except EQUAL or COMMA */
|
||||||
t = TYPE(CHILD(n, i));
|
else
|
||||||
|
t = TYPE(CHILD(n, i));
|
||||||
if (t == EQUAL) {
|
if (t == EQUAL) {
|
||||||
i++;
|
i++;
|
||||||
ndefs++;
|
ndefs++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue