equal
deleted
inserted
replaced
458 if self._parts['footer']: |
458 if self._parts['footer']: |
459 if not self.footer: |
459 if not self.footer: |
460 self.footer = self.t.render(self._parts['footer'], props) |
460 self.footer = self.t.render(self._parts['footer'], props) |
461 |
461 |
462 def templatespec(tmpl, mapfile): |
462 def templatespec(tmpl, mapfile): |
|
463 if pycompat.ispy3: |
|
464 assert not isinstance(tmpl, str), 'tmpl must not be a str' |
463 if mapfile: |
465 if mapfile: |
464 return formatter.templatespec('changeset', tmpl, mapfile) |
466 return formatter.templatespec('changeset', tmpl, mapfile) |
465 else: |
467 else: |
466 return formatter.templatespec('', tmpl, None) |
468 return formatter.templatespec('', tmpl, None) |
467 |
469 |