Patchwork [07,of,10,py3] help: convert dict to strkwargs

login
register
mail settings
Submitter Augie Fackler
Date May 29, 2017, 2:32 p.m.
Message ID <44be9a86f325e1cc3d27.1496068349@imladris.local>
Download mbox | patch
Permalink /patch/21052/
State Accepted
Headers show

Comments

Augie Fackler - May 29, 2017, 2:32 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1495992521 14400
#      Sun May 28 13:28:41 2017 -0400
# Node ID 44be9a86f325e1cc3d27ce001700652ce2305178
# Parent  e79e715a5249e5c90c0ef7221253acd2ba69bf12
help: convert dict to strkwargs

Patch

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -619,7 +619,7 @@  def help_(ui, name, unknowncmd=False, fu
         # program name
         if not ui.quiet:
             rst = [_("Mercurial Distributed SCM\n"), '\n']
-        rst.extend(helplist(None, **opts))
+        rst.extend(helplist(None, **pycompat.strkwargs(opts)))
 
     return ''.join(rst)