mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
don't complain about too many args if arg is a dict
This commit is contained in:
parent
ea64dea05f
commit
caeaafccf7
1 changed files with 1 additions and 1 deletions
|
@ -921,7 +921,7 @@ formatstring(format, args)
|
||||||
XDECREF(temp);
|
XDECREF(temp);
|
||||||
} /* '%' */
|
} /* '%' */
|
||||||
} /* until end */
|
} /* until end */
|
||||||
if (argidx < arglen) {
|
if (argidx < arglen && !dict) {
|
||||||
err_setstr(TypeError, "not all arguments converted");
|
err_setstr(TypeError, "not all arguments converted");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue