comparison mercurial/wireprotov2server.py @ 39828:3ed53b071041

py3: use pycompat.strkwargs() Otherwise we get an error attempting to dispatch a command with arguments because we're passing a dict with bytes keys. Differential Revision: https://phab.mercurial-scm.org/D4732
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Sep 2018 20:17:42 -0700
parents d3d333ab167a
children 69b4a5b89dc5
comparison
equal deleted inserted replaced
39827:a6088d10d5f2 39828:3ed53b071041
337 repo = getdispatchrepo(repo, proto, command) 337 repo = getdispatchrepo(repo, proto, command)
338 338
339 func, spec = COMMANDS[command] 339 func, spec = COMMANDS[command]
340 args = proto.getargs(spec) 340 args = proto.getargs(spec)
341 341
342 return func(repo, proto, **args) 342 return func(repo, proto, **pycompat.strkwargs(args))
343 343
344 @interfaceutil.implementer(wireprototypes.baseprotocolhandler) 344 @interfaceutil.implementer(wireprototypes.baseprotocolhandler)
345 class httpv2protocolhandler(object): 345 class httpv2protocolhandler(object):
346 def __init__(self, req, ui, args=None): 346 def __init__(self, req, ui, args=None):
347 self._req = req 347 self._req = req