py3: handle keyword arguments correctly in httppeer.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:47:21 +0530
changeset 35359 98bc4c43f570
parent 35358 8549ca7fcde1
child 35360 6699825f1242
py3: handle keyword arguments correctly in httppeer.py Differential Revision: https://phab.mercurial-scm.org/D1635
mercurial/httppeer.py
--- a/mercurial/httppeer.py	Sun Dec 10 04:47:04 2017 +0530
+++ b/mercurial/httppeer.py	Sun Dec 10 04:47:21 2017 +0530
@@ -204,6 +204,7 @@
         self._caps = set(self._call('capabilities').split())
 
     def _callstream(self, cmd, _compressible=False, **args):
+        args = pycompat.byteskwargs(args)
         if cmd == 'pushkey':
             args['data'] = ''
         data = args.pop('data', None)