# HG changeset patch # User Gregory Szorc # Date 1518396896 28800 # Node ID b587a889b97ead86dd3bb2125b47588d2d371779 # Parent c1104fe76e6917a8e219611d6713ea9e32a00df4 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 diff -r c1104fe76e69 -r b587a889b97e 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: