[PATCH 2 of 3 V2] py3: convert kwargs' keys to str using pycompat.strkwargs
Martin von Zweigbergk
martinvonz at google.com
Tue May 16 11:37:32 EDT 2017
On Mon, May 15, 2017 at 10:50 AM, Pulkit Goyal <7895pulkit at gmail.com> wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1493837661 -19800
> # Thu May 04 00:24:21 2017 +0530
> # Node ID 75245b989dd661164041794620770ad7726fe9cd
> # Parent d186d8361d0526413dd1399e92ccdb40f3ca2056
> py3: convert kwargs' keys to str using pycompat.strkwargs
>
> diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
> --- a/mercurial/cmdutil.py
> +++ b/mercurial/cmdutil.py
> @@ -1496,6 +1496,7 @@
> props['index'] = next(self._counter)
> props['revcache'] = {'copies': copies}
> props['cache'] = self.cache
> + props = pycompat.strkwargs(props)
>
> # write header
> if self._parts['header']:
> @@ -1515,7 +1516,7 @@
> if self._parts['footer']:
> if not self.footer:
> self.footer = templater.stringify(
> - self.t(self._parts['footer'], **props))
> + self.t(self._parts['footer'], **props))
I don't see a reason for this change, so I'm reverting it in flight.
>
> def gettemplate(ui, tmpl, style):
> """
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list