##// END OF EJS Templates
py3: convert kwargs keys' back to bytes using pycompat.byteskwargs()
Pulkit Goyal -
r33016:4e6dc34b default
parent child Browse files
Show More
@@ -1582,6 +1582,7 b' def getbundlechunks(repo, source, heads='
1582
1582
1583 Returns an iterator over raw chunks (of varying sizes).
1583 Returns an iterator over raw chunks (of varying sizes).
1584 """
1584 """
1585 kwargs = pycompat.byteskwargs(kwargs)
1585 usebundle2 = bundle2requested(bundlecaps)
1586 usebundle2 = bundle2requested(bundlecaps)
1586 # bundle10 case
1587 # bundle10 case
1587 if not usebundle2:
1588 if not usebundle2:
@@ -1303,6 +1303,7 b' class templater(object):'
1303 return stringify(self('', **mapping))
1303 return stringify(self('', **mapping))
1304
1304
1305 def __call__(self, t, **mapping):
1305 def __call__(self, t, **mapping):
1306 mapping = pycompat.byteskwargs(mapping)
1306 ttype = t in self.map and self.map[t][0] or 'default'
1307 ttype = t in self.map and self.map[t][0] or 'default'
1307 if ttype not in self.ecache:
1308 if ttype not in self.ecache:
1308 try:
1309 try:
General Comments 0
You need to be logged in to leave comments. Login now