Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshpeer.py @ 33112:05906b8e1d23
py3: use pycompat.byteskwargs() to convert kwargs' keys to bytes
This is used where ever required like where kwargs are passed into
ui.formatter(), scmutil.match() or cmdutil.openrevlog() which expects bytes.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 27 Jun 2017 00:20:55 +0530 |
parents | ad6c5497cd15 |
children | 0407a51b9d8c |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Tue Jun 27 02:24:38 2017 +0900 +++ b/mercurial/sshpeer.py Tue Jun 27 00:20:55 2017 +0530 @@ -12,6 +12,7 @@ from .i18n import _ from . import ( error, + pycompat, util, wireproto, ) @@ -259,6 +260,7 @@ yield wireproto.unescapearg(work) def _callstream(self, cmd, **args): + args = pycompat.byteskwargs(args) self.ui.debug("sending %s command\n" % cmd) self.pipeo.write("%s\n" % cmd) _func, names = wireproto.commands[cmd]