diff options
author | Guido van Rossum <guido@python.org> | 1995-02-27 10:13:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-27 10:13:23 (GMT) |
commit | caeaafccf7343497cc654943db09c163e320316d (patch) | |
tree | 19be3ad335a08de79601ac0d0b6163169fc6a1f8 /Objects | |
parent | ea64dea05f3f8fe069a7b3609064189ceb3861dd (diff) | |
download | cpython-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')
-rw-r--r-- | Objects/stringobject.c | 2 |
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; } |