Patchwork D854: py3: use pycompat.strkwargs() before passing a dict as keyword argument

login
register
mail settings
Submitter phabricator
Date Sept. 30, 2017, 1:39 p.m.
Message ID <0b3b0b748933ea94069ff83b98fc25e4@localhost.localdomain>
Download mbox | patch
Permalink /patch/24261/
State Not Applicable
Headers show

Comments

phabricator - Sept. 30, 2017, 1:39 p.m.
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

Patch

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):