# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-22 18:35:04 # Node ID e68dd1909af3268969cd050916fc8f66f0df749e # Parent 1a07f9187831b3d10170adf5e9c52cfed43090ca py3: handle keyword arguments in hgext/releasenotes.py Differential Revision: https://phab.mercurial-scm.org/D1322 diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py --- a/hgext/releasenotes.py +++ b/hgext/releasenotes.py @@ -25,6 +25,7 @@ from mercurial import ( error, minirst, node, + pycompat, registrar, scmutil, util, @@ -570,6 +571,8 @@ def releasenotes(ui, repo, file_=None, * 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')