Kaydet (Commit) a1e7e628 authored tarafından Guido van Rossum's avatar Guido van Rossum

fix bug with missing default for last arg (discovered by Tommy Burnette)

üst befa14f1
...@@ -2139,8 +2139,9 @@ com_argdefs(c, n) ...@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment