don't complain about too many args if arg is a dict

This commit is contained in:
Guido van Rossum 1995-02-27 10:13:23 +00:00
parent ea64dea05f
commit caeaafccf7

View file

@ -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;
}