diff mercurial/templater.py @ 34353:46f45b7efa30

py3: use pycompat.strkwargs() before passing a dict as keyword argument Differential Revision: https://phab.mercurial-scm.org/D854
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 30 Sep 2017 15:46:36 +0530
parents 89aec1834a86
children a1b89c8ad32d
line wrap: on
line diff
--- 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):