py3: use raw string for key in **kwargs
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 16:54:56 -0800
changeset 36116 b587a889b97e
parent 36115 c1104fe76e69
child 36117 c02771617a70
py3: use raw string for key in **kwargs Otherwise Python 3 is unhappy. We only set a single key here. So I don't think pycompat.strkwargs() is necessary. Differential Revision: https://phab.mercurial-scm.org/D2163
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Sun Feb 11 16:50:45 2018 -0800
+++ b/mercurial/bundle2.py	Sun Feb 11 16:54:56 2018 -0800
@@ -1729,7 +1729,7 @@
     extrakwargs = {}
     targetphase = inpart.params.get('targetphase')
     if targetphase is not None:
-        extrakwargs['targetphase'] = int(targetphase)
+        extrakwargs[r'targetphase'] = int(targetphase)
     ret = _processchangegroup(op, cg, tr, 'bundle2', 'bundle2',
                               expectedtotal=nbchangesets, **extrakwargs)
     if op.reply is not None: