Patchwork D1635: py3: handle keyword arguments correctly in httppeer.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:09 a.m.
Message ID <differential-rev-PHID-DREV-vxgac5joar2gfs5lng4l-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26153/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:09 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1635

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -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)