Mercurial > hg
comparison mercurial/formatter.py @ 32896:e14484e7f562
py3: use pycompat.strkwargs() to convert kwargs keys to str before passing
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 17 Jun 2017 15:05:11 +0530 |
parents | 8da65da039c3 |
children | 799db2af824c |
comparison
equal
deleted
inserted
replaced
32895:05c213cd8ab8 | 32896:e14484e7f562 |
---|---|
369 if 'ctx' in self._item: | 369 if 'ctx' in self._item: |
370 # but template resources must be always available | 370 # but template resources must be always available |
371 props['templ'] = self._t | 371 props['templ'] = self._t |
372 props['repo'] = props['ctx'].repo() | 372 props['repo'] = props['ctx'].repo() |
373 props['revcache'] = {} | 373 props['revcache'] = {} |
374 props = pycompat.strkwargs(props) | |
374 g = self._t(self._tref, ui=self._ui, cache=self._cache, **props) | 375 g = self._t(self._tref, ui=self._ui, cache=self._cache, **props) |
375 self._out.write(templater.stringify(g)) | 376 self._out.write(templater.stringify(g)) |
376 | 377 |
377 templatespec = collections.namedtuple(r'templatespec', | 378 templatespec = collections.namedtuple(r'templatespec', |
378 r'ref tmpl mapfile') | 379 r'ref tmpl mapfile') |