Patchwork D1322: py3: handle keyword arguments in hgext/releasenotes.py

login
register
mail settings
Submitter phabricator
Date Nov. 4, 2017, 9:27 a.m.
Message ID <differential-rev-PHID-DREV-ouyqxhu2jam2ortphehb-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25403/
State Superseded
Headers show

Comments

phabricator - Nov. 4, 2017, 9:27 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/D1322

AFFECTED FILES
  hgext/releasenotes.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py
--- a/hgext/releasenotes.py
+++ b/hgext/releasenotes.py
@@ -25,6 +25,7 @@ 
     error,
     minirst,
     node,
+    pycompat,
     registrar,
     scmutil,
     util,
@@ -570,6 +571,8 @@ 
     admonitions along with their title. This also includes the custom
     admonitions (if any).
     """
+
+    opts = pycompat.byteskwargs(opts)
     sections = releasenotessections(ui, repo)
 
     listflag = opts.get('list')