]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
don't complain about too many args if arg is a dict
authorGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:13:23 +0000 (10:13 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:13:23 +0000 (10:13 +0000)
Objects/stringobject.c

index 7df894e12c76f517e115ad7c3ba9066d3130d534..cb76d77f68f5bcf85ea4b820b09fbed1d6cb5d0c 100644 (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;
        }