py3: use pycompat.strkwargs() before passing a dict as keyword argument
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 30 Sep 2017 15:46:36 +0530
changeset 34346 46f45b7efa30
parent 34345 05167447f90d
child 34347 87a6be5b29f4
py3: use pycompat.strkwargs() before passing a dict as keyword argument Differential Revision: https://phab.mercurial-scm.org/D854
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):