hgext/histedit.py
changeset 43506 9f70512ae2cf
parent 43376 b27cf9f52194
child 43547 2b5d07702f94
--- a/hgext/histedit.py	Sun Nov 10 07:30:14 2019 -0800
+++ b/hgext/histedit.py	Fri Nov 08 11:19:20 2019 -0800
@@ -624,9 +624,9 @@
     def commitfunc(**kwargs):
         overrides = {(b'phases', b'new-commit'): phasemin}
         with repo.ui.configoverride(overrides, b'histedit'):
-            extra = kwargs.get(r'extra', {}).copy()
+            extra = kwargs.get('extra', {}).copy()
             extra[b'histedit_source'] = src.hex()
-            kwargs[r'extra'] = extra
+            kwargs['extra'] = extra
             return repo.commit(**kwargs)
 
     return commitfunc
@@ -1674,7 +1674,7 @@
         # Curses requires setting the locale or it will default to the C
         # locale. This sets the locale to the user's default system
         # locale.
-        locale.setlocale(locale.LC_ALL, r'')
+        locale.setlocale(locale.LC_ALL, '')
         rc = curses.wrapper(functools.partial(_chisteditmain, repo, ctxs))
         curses.echo()
         curses.endwin()