diff Objects/stringobject.c @ 2432:445bea8ceab1 legacy-trunk

don't complain about too many args if arg is a dict
author Guido van Rossum <guido@python.org>
date Mon, 27 Feb 1995 10:13:23 +0000
parents 14b126d0b5be
children 425835b88099
line wrap: on
line diff
--- a/Objects/stringobject.c	Mon Feb 27 10:11:31 1995 +0000
+++ b/Objects/stringobject.c	Mon Feb 27 10:13:23 1995 +0000
@@ -921,7 +921,7 @@
 			XDECREF(temp);
 		} /* '%' */
 	} /* until end */
-	if (argidx < arglen) {
+	if (argidx < arglen && !dict) {
 		err_setstr(TypeError, "not all arguments converted");
 		goto error;
 	}