mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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);
|
||||
} /* '%' */
|
||||
} /* until end */
|
||||
if (argidx < arglen) {
|
||||
if (argidx < arglen && !dict) {
|
||||
err_setstr(TypeError, "not all arguments converted");
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue