Commit caeaafcc authored by Guido van Rossum's avatar Guido van Rossum

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

parent ea64dea0
...@@ -921,7 +921,7 @@ formatstring(format, args) ...@@ -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;
} }
......
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