# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-22 18:31:45 # Node ID 901a18b03e006d5c8bb9f59f69be5cd2a2910f6c # Parent 26ed66ab1e72cd1851635ff403dda0f989b2acca py3: handle keyword arguments in hgext/commitextras.py Differential Revision: https://phab.mercurial-scm.org/D1300 diff --git a/hgext/commitextras.py b/hgext/commitextras.py --- a/hgext/commitextras.py +++ b/hgext/commitextras.py @@ -46,7 +46,7 @@ def _commit(orig, ui, repo, *pats, **opt origcommit = repo.commit try: def _wrappedcommit(*innerpats, **inneropts): - extras = opts.get('extra') + extras = opts.get(r'extra') if extras: for raw in extras: if '=' not in raw: @@ -65,7 +65,7 @@ def _commit(orig, ui, repo, *pats, **opt msg = _("key '%s' is used internally, can't be set " "manually") raise error.Abort(msg % k) - inneropts['extra'][k] = v + inneropts[r'extra'][k] = v return origcommit(*innerpats, **inneropts) # This __dict__ logic is needed because the normal