##// END OF EJS Templates
py3: handle keyword arguments correctly in wireproto.py...
Pulkit Goyal -
r35375:7d229241 default
parent child Browse files
Show More
@@ -452,9 +452,9 b' class wirepeer(repository.legacypeer):'
452 # don't pass optional arguments left at their default value
452 # don't pass optional arguments left at their default value
453 opts = {}
453 opts = {}
454 if three is not None:
454 if three is not None:
455 opts['three'] = three
455 opts[r'three'] = three
456 if four is not None:
456 if four is not None:
457 opts['four'] = four
457 opts[r'four'] = four
458 return self._call('debugwireargs', one=one, two=two, **opts)
458 return self._call('debugwireargs', one=one, two=two, **opts)
459
459
460 def _call(self, cmd, **args):
460 def _call(self, cmd, **args):
@@ -817,7 +817,7 b' def changegroupsubset(repo, proto, bases'
817 def debugwireargs(repo, proto, one, two, others):
817 def debugwireargs(repo, proto, one, two, others):
818 # only accept optional args from the known set
818 # only accept optional args from the known set
819 opts = options('debugwireargs', ['three', 'four'], others)
819 opts = options('debugwireargs', ['three', 'four'], others)
820 return repo.debugwireargs(one, two, **opts)
820 return repo.debugwireargs(one, two, **pycompat.strkwargs(opts))
821
821
822 @wireprotocommand('getbundle', '*')
822 @wireprotocommand('getbundle', '*')
823 def getbundle(repo, proto, others):
823 def getbundle(repo, proto, others):
General Comments 0
You need to be logged in to leave comments. Login now