# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1506766596 -19800 # Node ID 46f45b7efa300542e253dc13821c9030126d45eb # Parent 05167447f90d0f1c8b0df9d4676fc498eab63e5b py3: use pycompat.strkwargs() before passing a dict as keyword argument Differential Revision: https://phab.mercurial-scm.org/D854 diff -r 05167447f90d -r 46f45b7efa30 mercurial/templater.py --- a/mercurial/templater.py Sat Sep 30 05:22:22 2017 +0530 +++ b/mercurial/templater.py Sat Sep 30 15:46:36 2017 +0530 @@ -1371,6 +1371,7 @@ def render(self, mapping): """Render the default unnamed template and return result as string""" + mapping = pycompat.strkwargs(mapping) return stringify(self('', **mapping)) def __call__(self, t, **mapping):