Mercurial > public > mercurial-scm > hg-stable
diff hgext/split.py @ 36430:7b86aa31b004
py3: fix handling of keyword arguments at more places
The keys of keyword arguments of Python 3 should be str, which is why we need to
prevent getting the b'' prefix added by the transformer or convert keys to str
using pycompat.strkwargs()
Differential Revision: https://phab.mercurial-scm.org/D2420
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 16:18:40 +0530 |
parents | 02ea370c2baa |
children | 83bade6206d4 |
line wrap: on
line diff
--- a/hgext/split.py Sat Feb 24 16:16:14 2018 +0530 +++ b/hgext/split.py Sat Feb 24 16:18:40 2018 +0530 @@ -24,6 +24,7 @@ hg, obsolete, phases, + pycompat, registrar, revsetlang, scmutil, @@ -160,7 +161,7 @@ 'interactive': True, 'message': header + ctx.description(), }) - commands.commit(ui, repo, **opts) + commands.commit(ui, repo, **pycompat.strkwargs(opts)) newctx = repo['.'] committed.append(newctx)