changeset 34975:901a18b03e00

py3: handle keyword arguments in hgext/commitextras.py Differential Revision: https://phab.mercurial-scm.org/D1300
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 23 Oct 2017 00:01:45 +0530
parents 26ed66ab1e72
children a8bc191fee5a
files hgext/commitextras.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/commitextras.py	Mon Oct 23 00:01:16 2017 +0530
+++ b/hgext/commitextras.py	Mon Oct 23 00:01:45 2017 +0530
@@ -46,7 +46,7 @@
     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 @@
                         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