From patchwork Sat Sep 30 13:39:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D854: py3: use pycompat.strkwargs() before passing a dict as keyword argument From: phabricator X-Patchwork-Id: 24261 Message-Id: <0b3b0b748933ea94069ff83b98fc25e4@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 30 Sep 2017 13:39:18 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG46f45b7efa30: py3: use pycompat.strkwargs() before passing a dict as keyword argument (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D854?vs=2179&id=2188 REVISION DETAIL https://phab.mercurial-scm.org/D854 AFFECTED FILES mercurial/templater.py CHANGE DETAILS To: pulkit, #hg-reviewers, durin42 Cc: mercurial-devel diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -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):