##// 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 452 # don't pass optional arguments left at their default value
453 453 opts = {}
454 454 if three is not None:
455 opts['three'] = three
455 opts[r'three'] = three
456 456 if four is not None:
457 opts['four'] = four
457 opts[r'four'] = four
458 458 return self._call('debugwireargs', one=one, two=two, **opts)
459 459
460 460 def _call(self, cmd, **args):
@@ -817,7 +817,7 b' def changegroupsubset(repo, proto, bases'
817 817 def debugwireargs(repo, proto, one, two, others):
818 818 # only accept optional args from the known set
819 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 822 @wireprotocommand('getbundle', '*')
823 823 def getbundle(repo, proto, others):
General Comments 0
You need to be logged in to leave comments. Login now