Patchwork D1632: py3: handle keyword arguments correctly in help.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:09 a.m.
Message ID <differential-rev-PHID-DREV-utw7corckwllorwbi723-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26149/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:09 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1632

AFFECTED FILES
  mercurial/help.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -453,7 +453,7 @@ 
                 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: