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

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 2:06 a.m.
Message ID <b8951392b192a929f88bf57cb3ff770d@localhost.localdomain>
Download mbox | patch
Permalink /patch/26169/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2017, 2:06 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG98bc4c43f570: py3: handle keyword arguments correctly in httppeer.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1635?vs=4302&id=4315

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

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
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)