summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-27 10:13:23 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-27 10:13:23 (GMT)
commitcaeaafccf7343497cc654943db09c163e320316d (patch)
tree19be3ad335a08de79601ac0d0b6163169fc6a1f8 /Objects/stringobject.c
parentea64dea05f3f8fe069a7b3609064189ceb3861dd (diff)
downloadcpython-caeaafccf7343497cc654943db09c163e320316d.zip
cpython-caeaafccf7343497cc654943db09c163e320316d.tar.gz
cpython-caeaafccf7343497cc654943db09c163e320316d.tar.bz2
don't complain about too many args if arg is a dict
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 7df894e..cb76d77 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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;
}