@@ -479,19 +479,19 @@ these rules. The methods of :class:`Template` are:
479479 The constructor takes a single argument which is the template string.
480480
481481
482- .. method :: substitute(mapping[ , **kws] )
482+ .. method :: substitute(mapping, **kwds )
483483
484484 Performs the template substitution, returning a new string. *mapping * is
485485 any dictionary-like object with keys that match the placeholders in the
486486 template. Alternatively, you can provide keyword arguments, where the
487- keywords are the placeholders. When both *mapping * and *kws * are given
488- and there are duplicates, the placeholders from *kws * take precedence.
487+ keywords are the placeholders. When both *mapping * and *kwds * are given
488+ and there are duplicates, the placeholders from *kwds * take precedence.
489489
490490
491- .. method :: safe_substitute(mapping[ , **kws] )
491+ .. method :: safe_substitute(mapping, **kwds )
492492
493493 Like :meth: `substitute `, except that if placeholders are missing from
494- *mapping * and *kws *, instead of raising a :exc: `KeyError ` exception, the
494+ *mapping * and *kwds *, instead of raising a :exc: `KeyError ` exception, the
495495 original placeholder will appear in the resulting string intact. Also,
496496 unlike with :meth: `substitute `, any other appearances of the ``$ `` will
497497 simply return ``$ `` instead of raising :exc: `ValueError `.
0 commit comments