mercurial/templater.py
changeset 33016 4e6dc34b5d7a
parent 32974 8779d35c168d
child 33017 c31d45623304
equal deleted inserted replaced
33015:f66be4caeaab 33016:4e6dc34b5d7a
  1301     def render(self, mapping):
  1301     def render(self, mapping):
  1302         """Render the default unnamed template and return result as string"""
  1302         """Render the default unnamed template and return result as string"""
  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:
  1309                 ecls = engines[ttype]
  1310                 ecls = engines[ttype]
  1310             except KeyError:
  1311             except KeyError: