[PATCH 2 of 3 V2] py3: convert kwargs' keys to str using pycompat.strkwargs

Pulkit Goyal 7895pulkit at gmail.com
Tue May 16 11:38:59 EDT 2017


On Tue, May 16, 2017 at 9:07 PM, Martin von Zweigbergk <
martinvonz at google.com> wrote:

> 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.
>

​Yeah sure. Thanks!​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170516/5a61adbb/attachment.html>


More information about the Mercurial-devel mailing list