# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-12-09 23:16:39 # Node ID 7f410793c04d22d265461f4cad727fc731b795fa # Parent a119e97b6caf3fab2be298ef9ab4bcc7155342e8 py3: handle keyword arguments correctly in help.py Differential Revision: https://phab.mercurial-scm.org/D1632 diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -453,7 +453,7 @@ def help_(ui, commands, name, unknowncmd rst.append(' :%s: %s\n' % (f, h[f])) ex = opts.get - anyopts = (ex('keyword') or not (ex('command') or ex('extension'))) + anyopts = (ex(r'keyword') or not (ex(r'command') or ex(r'extension'))) if not name and anyopts: exts = listexts(_('enabled extensions:'), extensions.enabled()) if exts: